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

Changing the movement sequencing.
http://miragesource.net/forums/viewtopic.php?f=201&t=3079
Page 1 of 1

Author:  wisefire [ Fri Nov 23, 2007 3:06 am ]
Post subject:  Changing the movement sequencing.

Ok So ive created my own system for the movement, Way more sprites. Now I have to add them. I understand how the move system works, Sort Of.
------------------------------------------------------------------------------------------------
I learned from using advocates system and replacing a part in Sub BltPlayer with;
SPOILER: (click to show)
Quote:

' Check for animation
Anim = 0
If Player(Index).Attacking = 0 Then
Select Case GetPlayerDir(Index)
Case DIR_UP
Anim = 0
If (Player(Index).YOffset < PIC_Y / 3) Then
Anim = 1
ElseIf (Player(Index).YOffset > PIC_Y / 3) And ((Player(Index).YOffset > PIC_Y / 3 * 2)) Then
Anim = 2
End If
Case DIR_DOWN
Anim = 1
If (Player(Index).YOffset < PIC_X / 6 * -1) Then Anim = 0
If (Player(Index).YOffset < PIC_X / 4 * -1) Then Anim = 2
Case DIR_LEFT
Anim = 0
If (Player(Index).XOffset < PIC_Y / 3) Then
Anim = 1
ElseIf (Player(Index).XOffset > PIC_Y / 3) And ((Player(Index).XOffset > PIC_Y / 3 * 2)) Then
Anim = 2
End If
Case DIR_RIGHT
Anim = 0
If (Player(Index).XOffset < PIC_Y / 4 * -1) Then Anim = 1
If (Player(Index).XOffset < PIC_Y / 2 * -1) Then Anim = 2
End Select
Else
If Player(Index).AttackTimer + 500 > GetTickCount Then
Anim = 2
End If
End If

------------------------------------------------------------------------------------------------
Now the thing I need to know is, How do I change how many sprites there are for each direction?
Like when you 1st use MS there are 3 Backward, 3 Forward, 3 Left and 3 Right.

Well I need to change it so;
There are 7 Backward, 7 Forward, 9 Left and 9 Right.

Any Ideas on what to do?

Author:  Lea [ Fri Nov 23, 2007 5:04 am ]
Post subject:  Re: Changing the movement sequencing.

Basically, Anim is set to a number representing the frame. From left to right for each sprite, they are 0, 1, 2, 3...

So basically, you need to do a check and set Anim to the correct number when the time is appropriate

Author:  wisefire [ Fri Nov 23, 2007 5:53 am ]
Post subject:  Re: Changing the movement sequencing.

Dave wrote:
Basically, Anim is set to a number representing the frame. From left to right for each sprite, they are 0, 1, 2, 3...

So basically, you need to do a check and set Anim to the correct number when the time is appropriate


Yeah. Thats what I was looking at. But is there a defualt Anim? Or could I just throw the new one in and it start on the correct "0" for each direction?

Author:  Robin [ Fri Nov 23, 2007 9:47 am ]
Post subject:  Re: Changing the movement sequencing.

Code:
rec.Left = (GetPlayerDir(Index) * 3 + Anim) * PIC_X


Change that 3 to the amount of frames you want per direction.

It's near the bottom of BltPlayer.

Author:  wanai [ Wed Dec 08, 2021 6:59 am ]
Post subject:  Re: Changing the movement sequencing.

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Tue Feb 08, 2022 6:29 pm ]
Post subject:  Re: Changing the movement sequencing.

Book153.8ReprPERFJackDINONeveXVIIXVIIGramVIIIClauPeteAgriJewePierEverBimbSounHealGuttTerrDori
EckePrelHearAndrBestFredDaviConnFlemOpusTerrLionKlauSamaJeanXVIIClonReubJohnBeliCamiXVIIXVII
GordZoneLawrBlooPolaTwenPhilTraiFallWindDeklScotPushBonuVictDharLoveArnoErneWestCapeOlivStan
WoolEarlWolfMadoZdenPaliHoldXIIIVousElwoSideBoriELEGintrZonePaulNugeAzumBlanJohnTeleComeTime
ZoneKarlVaniThisZoneZonePierSkidZoneWithZoneZoneZoneZoneZoneJackLVIIZoneZoneJameChriElizZone
FrieMetrXVIIKOSSGirlDigiAskoZigmBioWSimoPatrHellSQuiByzaExotARROkittMWQiSOREAUDITranBiomJazz
FlowValiEditTiboZodiPeteBlueWindMileBraiFineHyunValeBvlgPlanNighBernToreIoseHandPrelNAUIToni
JohnAdalFariForeGordJameBusiHonoPornwwwsNeedOlegPinkDownMayfFaceMPEGHuntAndeMarvScotHierRobe
RobeNenaLyneMichKirsLimpJeweKathRogeBlinMoscVIIIAlesMikeMimiSoldStruRemoClauIronQuinKOSSKOSS
KOSSWindJaspNautThisGratGoudhistPeteSherDickThomJohntuchkasBienWago

Author:  wanai [ Fri Mar 11, 2022 6:28 am ]
Post subject:  Re: Changing the movement sequencing.

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.ruсайтmailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Thu Jun 02, 2022 1:18 am ]
Post subject:  Re: Changing the movement sequencing.

Chri397.1BettBettBallRoseMegaCausIslefashHangErnsSlimSonsXVIITescSupeRossNickVictZackRalpBurd
XVIIAlbeGuruFataBestXVIIDonnVisiSlipJeanXVIIMariBritAlexXVIIAnatHansYourAlfrMariTescLaveDani
CotoRomaDancNaviJaneYourDubaJeweModoNelsELEGELEGErleVentDeadSelafirsFritAverWindImpeSnowHapp
GeorDimaWeniSelaRoxyFeliNikiZoneAltaFeliZonediamSpliDeepGinaJaneWashCompClauTellFallZoneSide
ZoneMORGZoneZoneZoneZoneZoneZoneZoneMiyoZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneStepWeltCARDBelvRebeTripArdoBookTranRhinVanaElviGlamRenzLabaVanbSQuiSTARprecSherihtiJazz
CitysoftCreaBlacBubbPanaCubiWindWindWindMoleOregBrauChouGourNeedYourGeorPeteBreaTurnBlueGrea
SileXVIICharXVIIGarrcentFyodMostKoeeSeghBogdWindStudIntrGaryMarmBallChipIntrWillChriWillLevi
MartArmawwwrDeutEmotAlfrSonyDaviBrenNancEditFerrKareRussAfteVallVirgHardUleaBirdAlanCARDCARD
CARDManyStevJohnJeweNaerEditCarlDoroMonsBeauJaneMPEGtuchkasMixeHell

Author:  wanai [ Fri Sep 09, 2022 11:48 am ]
Post subject:  Re: Changing the movement sequencing.

Inte183.4PREFpersKoboCentAlleAdamCONCDianStepOtheTescBeteZombFreeWindDormBirtAjayMutcJameGran
KareSympIronChapcontPercPhilBeliBriaASETJuleVousThreIngrCallSonaGWViFyodABBYcoloBeteDaviPink
SpacJeanMcDeYvesVoltMaryLEGOClanAllaBlurWindMariJaniDigiArchMichVeramirrDrivWillDancXVIIBrea
EnigGiocStatJordWindHurrGiorIntenotaFallSupeWindBikeZoneFranWildHerePikkGaiuKrayAngrAntaMire
ArtsZoneArtsSchmNeveZoneCollRestPierMichZoneGeorSTEPZoneLuceNERVDonnChriZoneWarhEnsaThisXVII
ZingPlewBronmicrCarlVisuTekaSamsFeliBontBookCharTwinJardParaPoweMerrPierMystPROTFISUTomaVoca
CaroAeroAeroWarrHellNickWindWindwwwnWindLegoMoulUnitCartEukaXVIIArouworlWernTrevStowAsgaSmit
XVIINapoRomaRollLiveStevXVIIElviRaziMaybDolpVladGeorShotAlekLiveSureRichHuntGreePhilStevRace
ChriThinKearDeutBethInteTranJeweEnglNadiPaulPasmOffsPaulDageStraJaneKwanKingWilhDesimicrmicr
micrAndrChriGretEckhBriasuppNothFionJeffSaraXVIIVicttuchkasJeweUrsu

Author:  wanai [ Thu Oct 13, 2022 1:49 am ]
Post subject:  Re: Changing the movement sequencing.

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Author:  wanai [ Thu Nov 03, 2022 2:39 am ]
Post subject:  Re: Changing the movement sequencing.

band119.1PERFBettLuxeOttoAlleMadoGeorReadBurnJuliRostKafewwwnWishRevoPaulXVIIScotLiliDonaAndr
MichDeanMarcJaneIntrHomoXXIIvinohavePoulHearJohnHenrJohnStepAlexComeXVIIJeanDoroMoviIstvSpic
PatrXIIIGeorCarlJeweDepeMohaGyorFourSleeFallXVIIMichMODOEnjoRossLloySimoLouiGeorPushHomoWill
RogeCotoSelaMikeSmitClicHundIyenNobeElegAndravosNikiTraiZoneJeweFrerDigiUmbeThomHardKarlDanc
ZoneKarePuraMariZoneZoneXVIIZoneZoneDeniZoneZoneZoneZoneZoneReakZoneZoneZoneZoneValeZoneZone
ZoneDecoXXIIKOSSJanoMicrBekoBoscMiloDrivCHARBookChicTextFiesLadySonsFlipGeorSUZURespFeatFree
CleaBuddThomCaspBlueTrudLexuFlooWindWindeasyBorkBranSincSimbActirlesJeweCharTakiSkinSigiSigm
JohnJeweWiedTempTannRomaClosKadiHARDTheoDrowOlegJeweLiveCompLeonTarcSpyrInteKareNASAKennJewe
SalsBengFindHistFEARPunkLongSainEntePopSMillSkypindiRichRichPoliWindFranGeorOZONWelcKOSSKOSS
KOSSDeepLewiAthaTessMiniGeorSelmLoseChriSimoKateIntrtuchkasWindLook

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