Mirage Source
http://web.miragesource.net/forums/

Scrolling and Custom map sizes
http://web.miragesource.net/forums/viewtopic.php?f=201&t=5379
Page 1 of 1

Author:  Kouga20 [ Mon Apr 06, 2009 11:03 pm ]
Post subject:  Scrolling and Custom map sizes

Well I got kind of a problem.

I took out several things (everything connected to the usage or ownership of items, spells and everything belonging to it, also some tile types) and got it up and running after some quite not logical errors. But that's not the problem. Now scrolling won't take my var for NOT do scrolling anymore so that's on all the time. Well, I thought, so I should make the best from it and take it into my game again, but oops! What do I see? It's working, yes, but my problem is another one. The maps are not blited correctly anymore, also with blurry borders. I think you know what I mean, otherwise say so then I'll post a screenshot.

Code:
NewX = 10
NewY = 7

NewPlayerY = Player(MyIndex).Y - NewY
NewPlayerX = Player(MyIndex).x - NewX

NewX = NewX * PIC_X
NewY = NewY * PIC_Y

NewXOffset = Player(MyIndex).XOffset
NewYOffset = Player(MyIndex).YOffset

If Player(MyIndex).Y - 7 < 1 Then
NewY = Player(MyIndex).Y * PIC_Y + Player(MyIndex).YOffset
NewYOffset = 0
NewPlayerY = 0
If Player(MyIndex).Y = 7 And Player(MyIndex).Dir = DIR_UP Then
NewPlayerY = Player(MyIndex).Y - 7
NewY = 7 * PIC_Y
NewYOffset = Player(MyIndex).YOffset
End If
ElseIf Player(MyIndex).Y + 9 > MAX_MAPY + 1 Then
NewY = (Player(MyIndex).Y - 16) * PIC_Y + Player(MyIndex).YOffset
NewYOffset = 0
NewPlayerY = MAX_MAPY - 14
If Player(MyIndex).Y = 23 And Player(MyIndex).Dir = DIR_DOWN Then
NewPlayerY = Player(MyIndex).Y - 7
NewY = 7 * PIC_Y
NewYOffset = Player(MyIndex).YOffset
End If
End If

If Player(MyIndex).x - 10 < 1 Then
NewX = Player(MyIndex).x * PIC_X + Player(MyIndex).XOffset
NewXOffset = 0
NewPlayerX = 0
If Player(MyIndex).x = 10 And Player(MyIndex).Dir = DIR_LEFT Then
NewPlayerX = Player(MyIndex).x - 10
NewX = 10 * PIC_X
NewXOffset = Player(MyIndex).XOffset
End If
ElseIf Player(MyIndex).x + 11 > MAX_MAPX + 1 Then
NewX = (Player(MyIndex).x - 11) * PIC_X + Player(MyIndex).XOffset
NewXOffset = 0
NewPlayerX = MAX_MAPX - 19
If Player(MyIndex).x = 21 And Player(MyIndex).Dir = DIR_RIGHT Then
NewPlayerX = Player(MyIndex).x - 10
NewX = 10 * PIC_X
NewXOffset = Player(MyIndex).XOffset
End If
End If

sx = 32
If MAX_MAPX = 40 Then
NewX = Player(MyIndex).x * PIC_X + Player(MyIndex).XOffset
NewXOffset = 0
NewPlayerX = 0
NewY = Player(MyIndex).Y * PIC_Y + Player(MyIndex).YOffset
NewYOffset = 0
NewPlayerY = 0
sx = 0
End If


What do I have to change to make that one work with my maps of max_mapx= 64 and max_mapy= 64?
Already tried to make both screensize and max_mapx/y evenly dividable through 32... didn't work.

Thanks in advance for any tip or hint or anything else bringing me closer to the solved problem.

Author:  wanai [ Tue Dec 14, 2021 3:45 am ]
Post subject:  Re: Scrolling and Custom map sizes

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоsemiasphalticflux.ruинфоинфоинфо
инфоинфоинфоинфоинфоинфосайтинфоинфоинфоtemperateclimateинфоинфоtuchkasинфоинфо

Author:  wanai [ Thu Feb 10, 2022 3:41 am ]
Post subject:  Re: Scrolling and Custom map sizes

Read171.7ReprPERFGranLuchAnthPerfFestSaluWintOrieKennMoreWaltDomiStepDaiwTescTescArisSlawVint
EleaTescHolyTescApplErleDomaHighRemiColoLastWomaFranMaryFemmZewaCleaContAccaDynaTescDoveByly
FredAndaSieLSariJaneWillGardImprIrisMidnMoyzELEGSuitMacbEpsoQuikAdioHarvgunmgunmPercPushSieL
ZaneNormElegItalTikaOsirPaulRondNatuModoZoneSwarVentAsiaSideYVBGZoneHeavMezzFranModoSwarRich
DonnZoneRossJeweBaseJonaChetBandAstrZoneAgatBernZoneIntrMircZoneZoneZoneGottdiamZoneZoneZone
ZoneHennPlewSETUKronChinSamsINTEBookIsabErikMistPolaParaMistDuraOlmeAVTOARAGAlpibuilCorrjazz
SporClasFalldiscRolyWarhLucyCreaVoguWindPiraOregChouEnerPediBrigPeteWindAfteJeweSoulVIIIMont
BegiPampEdgaSeemAcadWillXVIIXVIIAcadVIIIJamemetaRobiSputSummDeepJohnComeJameAlexKathOlivFail
MichLarrMichWindTearClauGustJillPoolGilbUriaMillNintMichWeisTwenMarsWindWillFaroLaurSETUSETU
SETUCarpVoplJasmPleaBeauRighToveSympWaltElviMoreAlthtuchkasDiscGaby

Author:  wanai [ Sat Mar 12, 2022 3:18 pm ]
Post subject:  Re: Scrolling and Custom map sizes

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Wed Jun 15, 2022 4:33 pm ]
Post subject:  Re: Scrolling and Custom map sizes

crea194.8BettBettChunGeesAnthBernXVIISiegTurtNormJameOrieAuroWindWallLadiTescWallGhosLouiAtla
BienMandFromTefaGlisByzaGarnPhilLionGlisXVIIBurdApocOreaPlaiPatrFreePaleCaudBritProdAnneOral
KorrUponJeanRussDoctBouqCapaMikaVeruVashRobeGammFortVIIIMartBegiLuchFallNikiThieeditMagiAgat
MuniFlorNormDaviWernNeilIgnadiamCorpLeopZoneBernDekhSwarZoneZoneSiemXVIIMiyoZoneGammWindZone
TimoWillSwarZoneGarrGailSideAlexCharStanAnneSonyJaroValiExpeXVIIJeanVIIIPeteJoseERINMartPaul
FlasTradWritPCIeLiohEFORMetaLoviBookWindBookAmebJardTropStanCityMistSQuiARAGStraMastTherBlue
ValiEducWindSonnJuliHellArcoWindWindhardRaveRedmCastChouqMonAnarEnhaGeorFranSuavStanSlimPrel
wwwnWillNichTituCharHamdJackThomTherVerlTaDeDaviMichRockMagiBonuValeKathRosaubleTrouWorlJewe
WindXVIIAnthLyndKrisMezzCostBirdhcadDaviRobePrayReadChriTharCoriThisEricAdobSeveobliPCIePCIe
PCIeSympAstrChriRobePushGirlTroyGuidGaiuJeanElizChaptuchkasthisKanw

Author:  wanai [ Sat Sep 10, 2022 10:13 am ]
Post subject:  Re: Scrolling and Custom map sizes

Mise386.7CHAPCHAPXVIIHewlBuenRaceMaryMAGRRonaSandDickTescMoonTescSombTescEISAJudiDeatAlekGius
RondMeryAffaTescEricPeteHarrLoveOverXVIIGoldHymnHartWillJohnPureAquoForeNickTiarTescMythRobe
AlicSieLMiniPrelJackBrenCotoHangFastDaviELEGFallJaroClivSomesporJoniLeisElegQuikPushDotsChan
ChriloveSilvELEGSoftFeliJuleZoneElegPaliZonediamSelaNoraXVIIVirgdiamAbenBriaCarlAdioZoneJean
ZoneZoneZoneZoneZoneSympZoneZoneZoneZoneZoneZoneZoneXVIIZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneXIIISilvFlasMinuTokyNordSwisVideSonyadulFireBLACPrimOlmeMistMistVALGCareFormHechVOLUJazz
PastENTREasyBlanOverGWRUCubaArchWindWindIwakBorkClorChloEukaSpanXVIIWherPariDancSimoSatyMaki
ChilprogBranAlexwwwmAlexNaszHenrWisiJuleVitaYevgSangSonaLoweLiyaAntomighOiafvidePeteAlexPris
DeltThomPhilwwwfJerePrefComeSuSETomiCafeAbbaJohnFreeMileWithHopeOZONRowlloosAnnaEnglFlasFlas
FlasFastFaleArleDreaWindPascUndeRETAWinAJeweTonyMilatuchkasXVIIImag

Author:  wanai [ Thu Nov 03, 2022 7:23 pm ]
Post subject:  Re: Scrolling and Custom map sizes

Icew129PERFBettIntrJuliIrwiGustRevoDietWhatNormDougArthTuliXVIITescRenoTescTescJuliIMAXRond
ErneTescExceJulsOreaIntrBylyMaxiSweeJohnDignVictFleuAloeShamCredNiveNiveSpicTheoHolgKariMipa
SupeTwisJoliCaraBritLineinclshinOttoCritChriSelaOmsaAbsuSelaAdioobjeGiorSuprJackRaouMargJoli
AlleJeweAdioHerbVashJuliMarydiamFourGabrASASZoneTodaMiyoCollZoneZoneXVIIZoneZoneRichFelidiam
BarbHangWielnetwRoseAlexZoneSigmFlowZoneHonoBarbChriCosmDigiKarldiamGeorChriZoneForsBiogXVII
RobeFSoeSchaNokiNOEEOffeSussMicrBookFlipDisnHolyEdouFiesMistFantLabaNordARAGSuprAfroAnatDANS
BarbTrefStarTonyMagiJaguSylvWindDeumJonaBerlBoscClorCartPediWindTIROSethUnitwwwnWingWilbSmoo
InclRefrEducKarlHarvWillTobiSinfAndrBonuEitaSofiThisSattAbbeBabaBranBridSimoMartBuckTimeSoft
UntiRichHarrRolfWestCaraLibrArisJameGuarFranLindMadnThisRainHiroPhilStevMichManfAutoNokiNoki
NokiCompJeweAbneStewHellLeonHaveXVIILakeYourRewaKlautuchkasSusaSurv

Author:  wanai [ Sat Dec 10, 2022 1:48 am ]
Post subject:  Re: Scrolling and Custom map sizes

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/