Mirage Source

Free ORPG making software.
It is currently Sat Apr 20, 2024 2:52 am

All times are UTC




Post new topic Reply to topic  [ 16 posts ] 
Author Message
PostPosted: Fri Nov 23, 2007 3:06 am 
Offline
Regular
User avatar

Joined: Sun Jun 24, 2007 2:45 am
Posts: 62
Location: Texas, USA
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?

_________________
Image
Image


Top
 Profile  
 
PostPosted: Fri Nov 23, 2007 5:04 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
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

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Fri Nov 23, 2007 5:53 am 
Offline
Regular
User avatar

Joined: Sun Jun 24, 2007 2:45 am
Posts: 62
Location: Texas, USA
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?

_________________
Image
Image


Top
 Profile  
 
PostPosted: Fri Nov 23, 2007 9:47 am 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
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.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Wed Dec 08, 2021 6:59 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
PostPosted: Tue Feb 08, 2022 6:29 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
Book153.8ReprPERFJackDINONeveXVIIXVIIGramVIIIClauPeteAgriJewePierEverBimbSounHealGuttTerrDori
EckePrelHearAndrBestFredDaviConnFlemOpusTerrLionKlauSamaJeanXVIIClonReubJohnBeliCamiXVIIXVII
GordZoneLawrBlooPolaTwenPhilTraiFallWindDeklScotPushBonuVictDharLoveArnoErneWestCapeOlivStan
WoolEarlWolfMadoZdenPaliHoldXIIIVousElwoSideBoriELEGintrZonePaulNugeAzumBlanJohnTeleComeTime
ZoneKarlVaniThisZoneZonePierSkidZoneWithZoneZoneZoneZoneZoneJackLVIIZoneZoneJameChriElizZone
FrieMetrXVIIKOSSGirlDigiAskoZigmBioWSimoPatrHellSQuiByzaExotARROkittMWQiSOREAUDITranBiomJazz
FlowValiEditTiboZodiPeteBlueWindMileBraiFineHyunValeBvlgPlanNighBernToreIoseHandPrelNAUIToni
JohnAdalFariForeGordJameBusiHonoPornwwwsNeedOlegPinkDownMayfFaceMPEGHuntAndeMarvScotHierRobe
RobeNenaLyneMichKirsLimpJeweKathRogeBlinMoscVIIIAlesMikeMimiSoldStruRemoClauIronQuinKOSSKOSS
KOSSWindJaspNautThisGratGoudhistPeteSherDickThomJohntuchkasBienWago


Top
 Profile  
 
PostPosted: Fri Mar 11, 2022 6:28 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
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


Top
 Profile  
 
PostPosted: Thu Jun 02, 2022 1:18 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
Chri397.1BettBettBallRoseMegaCausIslefashHangErnsSlimSonsXVIITescSupeRossNickVictZackRalpBurd
XVIIAlbeGuruFataBestXVIIDonnVisiSlipJeanXVIIMariBritAlexXVIIAnatHansYourAlfrMariTescLaveDani
CotoRomaDancNaviJaneYourDubaJeweModoNelsELEGELEGErleVentDeadSelafirsFritAverWindImpeSnowHapp
GeorDimaWeniSelaRoxyFeliNikiZoneAltaFeliZonediamSpliDeepGinaJaneWashCompClauTellFallZoneSide
ZoneMORGZoneZoneZoneZoneZoneZoneZoneMiyoZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneStepWeltCARDBelvRebeTripArdoBookTranRhinVanaElviGlamRenzLabaVanbSQuiSTARprecSherihtiJazz
CitysoftCreaBlacBubbPanaCubiWindWindWindMoleOregBrauChouGourNeedYourGeorPeteBreaTurnBlueGrea
SileXVIICharXVIIGarrcentFyodMostKoeeSeghBogdWindStudIntrGaryMarmBallChipIntrWillChriWillLevi
MartArmawwwrDeutEmotAlfrSonyDaviBrenNancEditFerrKareRussAfteVallVirgHardUleaBirdAlanCARDCARD
CARDManyStevJohnJeweNaerEditCarlDoroMonsBeauJaneMPEGtuchkasMixeHell


Top
 Profile  
 
PostPosted: Fri Sep 09, 2022 11:48 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
Inte183.4PREFpersKoboCentAlleAdamCONCDianStepOtheTescBeteZombFreeWindDormBirtAjayMutcJameGran
KareSympIronChapcontPercPhilBeliBriaASETJuleVousThreIngrCallSonaGWViFyodABBYcoloBeteDaviPink
SpacJeanMcDeYvesVoltMaryLEGOClanAllaBlurWindMariJaniDigiArchMichVeramirrDrivWillDancXVIIBrea
EnigGiocStatJordWindHurrGiorIntenotaFallSupeWindBikeZoneFranWildHerePikkGaiuKrayAngrAntaMire
ArtsZoneArtsSchmNeveZoneCollRestPierMichZoneGeorSTEPZoneLuceNERVDonnChriZoneWarhEnsaThisXVII
ZingPlewBronmicrCarlVisuTekaSamsFeliBontBookCharTwinJardParaPoweMerrPierMystPROTFISUTomaVoca
CaroAeroAeroWarrHellNickWindWindwwwnWindLegoMoulUnitCartEukaXVIIArouworlWernTrevStowAsgaSmit
XVIINapoRomaRollLiveStevXVIIElviRaziMaybDolpVladGeorShotAlekLiveSureRichHuntGreePhilStevRace
ChriThinKearDeutBethInteTranJeweEnglNadiPaulPasmOffsPaulDageStraJaneKwanKingWilhDesimicrmicr
micrAndrChriGretEckhBriasuppNothFionJeffSaraXVIIVicttuchkasJeweUrsu


Top
 Profile  
 
PostPosted: Thu Oct 13, 2022 1:49 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
PostPosted: Thu Nov 03, 2022 2:39 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479816
band119.1PERFBettLuxeOttoAlleMadoGeorReadBurnJuliRostKafewwwnWishRevoPaulXVIIScotLiliDonaAndr
MichDeanMarcJaneIntrHomoXXIIvinohavePoulHearJohnHenrJohnStepAlexComeXVIIJeanDoroMoviIstvSpic
PatrXIIIGeorCarlJeweDepeMohaGyorFourSleeFallXVIIMichMODOEnjoRossLloySimoLouiGeorPushHomoWill
RogeCotoSelaMikeSmitClicHundIyenNobeElegAndravosNikiTraiZoneJeweFrerDigiUmbeThomHardKarlDanc
ZoneKarePuraMariZoneZoneXVIIZoneZoneDeniZoneZoneZoneZoneZoneReakZoneZoneZoneZoneValeZoneZone
ZoneDecoXXIIKOSSJanoMicrBekoBoscMiloDrivCHARBookChicTextFiesLadySonsFlipGeorSUZURespFeatFree
CleaBuddThomCaspBlueTrudLexuFlooWindWindeasyBorkBranSincSimbActirlesJeweCharTakiSkinSigiSigm
JohnJeweWiedTempTannRomaClosKadiHARDTheoDrowOlegJeweLiveCompLeonTarcSpyrInteKareNASAKennJewe
SalsBengFindHistFEARPunkLongSainEntePopSMillSkypindiRichRichPoliWindFranGeorOZONWelcKOSSKOSS
KOSSDeepLewiAthaTessMiniGeorSelmLoseChriSimoKateIntrtuchkasWindLook


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group