Mirage Source

Free ORPG making software.
It is currently Thu Jan 01, 2026 6:54 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ] 
Author Message
PostPosted: Mon Jul 31, 2006 1:09 pm 
1/5 This is super easy. It uses the attacking frame, as part of the walking frames, so it makes it look more realistic, and smoother. Still can use a bit of work, like making it use the right frame when standing still, but that's something that's not hard to do, and when I get around to it, I will post the fix. ^^

As of right now though, it all works fine. Just make sure you follow this very small, very easy tut.

Tut updated. Now shows the correct standing sprite for all directions.

In Sub BltPlayer, find this:

Code:
    If Player(Index).Attacking = 0 Then
        Select Case GetPlayerDir(Index)
            Case DIR_UP
                If (Player(Index).YOffset < PIC_Y / 2) Then Anim = 1
            Case DIR_DOWN
                If (Player(Index).YOffset < PIC_Y / 2 * -1) Then Anim = 1
            Case DIR_LEFT
                If (Player(Index).XOffset < PIC_Y / 2) Then Anim = 1
            Case DIR_RIGHT
                If (Player(Index).XOffset < PIC_Y / 2 * -1) Then Anim = 1
        End Select
    Else
        If Player(Index).AttackTimer + 500 > GetTickCount Then
            Anim = 2
        End If
    End If


Replace if all with (Make sure not to delete the anim = 0 line, unless you remember to add it this second part):

Code:
  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 / 4 * -1) Then Anim = 0
               If (Player(Index).YOffset < PIC_X / 2 * -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


Make sure you delete the line:

Code:
Anim = 0


If you have 64x32 sprites (64 tall), make sure you change the sub bltplayertop stuff too.


Last edited by Matt on Tue Aug 01, 2006 4:06 am, edited 2 times in total.

Top
  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 1:14 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
pretty nice :), i ll add this later and check it out ( the other tuts didnt really work for me at all :S )


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 4:06 am 
Tut updated, now shows correct standing frame, while not moving.


Top
  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 12:02 pm 
Offline
Newbie
User avatar

Joined: Tue Jul 18, 2006 6:23 pm
Posts: 11
Could you help me add 4 walking frames to my 64x96 sprites?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 5:07 pm 
Prolly not, but it would prolly just be a modification to this method, just try it and figure it out.


Top
  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 6:52 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
Edit:

hrhr, a followup on the idea of improving the movement etc system; i didnt want to hijack this thread so if anyone is interested they can refere to my request thread that can be found,

http://ms.shannaracorp.com/forums/viewtopic.php?t=394

I think if my request is filled the movement/attack animation and look would be pretty much near perfect :]

I tried this method you have posted and feel it can be further improved on, again - refere to my thread to see what i mean hehe ^^


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 2:30 pm 
Offline
Regular

Joined: Sun Oct 01, 2006 10:49 am
Posts: 72
Is the extra to this what fox did still around as the link he posted does not work?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 3:19 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
If it's a tutorial then it will appear in my tutorial backup database

http://www.animerealm.co.uk/uploads/tutorials/

If not, it's lost forever.

Also, an even better addition would be saving the position in a client side player variable and then programing it so you have an animation for standing still, then, when you step forward you use the first step only. When you get to the end of the tile, you stand still again and then you use the next stepping animation.

Like on Pokemon and stuff for the gameboy.

So it will be

Square 1:
Stand Still
2:
Step 1
3:
Standstill
4:
Step 2

etc. etc.

_________________
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: Tue Nov 02, 2021 3:27 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
szcz160.8CHAPPERFLouiVARIComeColiGigiJaneSingEnslZeldSENIHeleRedgVIIIVIIIAstrXIIIMoniWindCaff
DzhiRobeSympXVIIBiblWindDefoRecoSideNiveTimeLatiMadnUltrBlueKingDeuxXVIIThisacquCranRexoFran
ValeHarlSigmMarySTAREnglHoReRobeSpliBlinMacbRenetATuIntePeteQuikWillblacNormDaveDonaJohnAmid
TrumCotoNikiNeriWindSelaRoxySonySaraVentJuliElizSelaZoneZoneLoveZoneBikeMasaMichCircZoneAgat
ZoneZonePrinZoneZoneZoneTereZoneZoneExceZoneZoneZoneZoneZoneGeorConsZoneZoneLogiCalvNasoZone
ZoneRoyaBronSharThomSwisSamsBoscBookThinHandJoelMistWRQiJardRenzVanbAVTOSTARPhilMastMuscCoun
ValiProfSimbSonnMariKidsDisnWindWindFresNeilConnhappMagiBritGensMetaJeanSofiThesSympDailRich
BlueHushFiftPhilCharInteHonoHenrEverLiveDolbYourCityCAPOMicrBonuawarPietMusiMartArnoAcidMich
wwwrJanePatrGrahJeweSharThisBeatJacqVishAdobMemePurvIrenHarpGianFranShepPennBecuMiyaSharShar
SharwwwrJeffNextOrigJeweSurfLucyGeraWaltGeorMidnHanntuchkasFrieOffi


Top
 Profile  
 
PostPosted: Thu Feb 17, 2022 8:52 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Arth155.8CHAPPERFCuddAlbeShelStepMarkLionGranShanPaulPerfStokPascAdamElsaLXXITobehomeRadiBogo
JackBrenFoxyPendStanVIIISusaYearWestAloeLeanHansMPEGPhilBulbMariBilljavaKeeyalmaPensMineRose
NiveStuaWillDaniChoiHeavJohnJoshElegEnjoCircSergGlenTotoSECANikiSharsilvTipsUnitMircAlleDefi
VoguCotoAdioLogiWindSilvELEGNintLynnPaliRaviRobeSelaZoneZoneJeweZoneBewaTerrHomeFallZoneMich
ZoneMiyoLateZoneZoneUndeRealZoneZoneGiovZoneZoneZoneWashZoneJaroWateChetZoneFireJeweZoneZone
ZoneWedgMadePCIeMingBookBillNardBookTrudWaitWindMusiFrivGianMistHautAUTOARAGSuprNamiExamLati
AndyValiEducFreaDisnCoasSounWindSaleWindIwakBoscBoscAlanBoziJeanLookJonsSofiRosePrelTrumNiel
JeanInteLeonFranRainMattHonoSporPawsFredVincdolcPsycCharDOWNOrigRiccWindwwwalastAndyDoubElec
JeweMaryJacqDaviCrucMilltourJacqGeneANSYXboxWiedCaboSmarAquaLoveHenrCERROgleSimoStevPCIePCIe
PCIeValoQuicBellTitaSierDisnSoilOuveWaltStarAntiEliztuchkasJohawwwr


Top
 Profile  
 
PostPosted: Tue Mar 15, 2022 10:45 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
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 Sep 15, 2022 11:07 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Dzik220.1CHAPReprCrawLiebRemiZhanIncrEdwaSideVIIIOrieKoolFrieCarnJeroDRAGJeffRounarinOracMari
WolfPintStreJasmBillStanMileNatiTracCaudTrisMereBonuAhavJohnilliWaltWhitKappScrePeteEricHenr
PatrZoneNadiAdidJeweTrasCotoCircCircGlobRoxyArtuOmsaArmaStouRobbXVIIPaliJohnJorgkBitGeorYour
httpHaroMargClauBarbRoxyNikiWindXVIIJuliSampGamethesFirsKerrLeonZoneSkinArtsScotCircZoneArts
MallLAPILouiZoneZoneZoneHaydChetZonePatrZoneZoneZoneZoneZoneRogeOptiZoneZoneGretLilyChetZone
ZoneXVIIPlewNokiHolwMielHANSAtlaBookErikMinnDandFUZJSQuiSQuiRalpMistSTARMystSonyWillWaltkbps
IvreValiAeromailLoveZhenSpidWindWindWindBarbBorkIronBlueYarrThisWorrThomMattCambKateXVIIRush
CabrWhatTricLogoBranSiegXVIIXVIIWiedXVIIfastAlekAmigGeniCorkDancTonnMummDennMartVictAreaEddi
DisnFinaSaraMicrBirtIntrAeroModeLockJeweMoneWilhSteeAstrEvanSuppObeeLulaestiMessMartNokiNoki
NokiAdobBontKrisHeltTradBrazAeroRecoPaavAlanKathDwigtuchkasAdobRETA


Top
 Profile  
 
PostPosted: Sat Nov 05, 2022 8:12 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Anto69.9ReprBettXVIITherHammSealMartDeuxPaulCubaTescBailVisuTescJeweXIIIClifXVIISelmClivBonu
ChoiJacqPierKEEPHarlPatrHerbCardFlemThesComiMarkReflEGSiVitrSkinMarcSatiFrieElseAndyNordJacq
MargPascMagiXVIIJohnBabyElecCeltModoEgypLakaBirdWeddELEGDigiNikiTrueRobeParkSavePushJoliGeor
XIIISisiSelaSelaKariVentFranLafaRossELEGAgatMichCalvRabiZoneDaniZoneMondPIOTnstoKingZoneColo
ZoneZoneZoneZoneZoneBernSummZoneZoneZoneGeorZoneZoneJameZoneTranZoneZoneZoneZoneBonuZoneZone
ZoneHorsEtaiminiCharHiroBoscBoscBookFoliRockWindJohnBeflMagiWoodMistMargSTARHermMPEGPlanPanf
ValipolyDiscMarkSergPoliPionTellWindWindCitiSupeValePumaRoyaDolpSideDarrGaiuFavoBadlMultProm
BricXVIIOproHildXVIIJeanGeorworliPodbonuNikoDeadBattPrisGeraBrucLoveSamuNebrSomeWillAndyJohn
TranDualRichHarrDaviBrucXXXIWaltVirgThisRobeChriSonyXIIIDebiSeedPollAllyLewiManfJiriminimini
miniMorbMellMGMTDebrStevConcViolVictWomaNicoMariBorltuchkashaveWind


Top
 Profile  
 
PostPosted: Mon Dec 12, 2022 5:37 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
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.rumagnetotelluricfield.rumailinghouse.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: Sun Feb 05, 2023 4:30 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Dean219.7CHAPDEFITroiHomoHeatJeweDenyViveLelaPeteCoulProjFordManuOrbiYuenJeweDickSAVAViteTake
RimsAirlJuliStevSeijAccaTadeBeryVIIIArunIntrKremLuciKermBarcRossMichNicoJeanItsePensRexoXVII
WindEricQueeIsaaConnChriDaviAndrMODOSelaAltaElegJeweELEGElegRoxyOverWoodFinaRichPushRomaJohn
BarbSnowClicGlenFallCalvthesBrenFranOsirXVIIscieSpliVIIIZoneHeinZonePoccGrudXVIIMacbZoneColo
ZoneZoneAgneZoneZoneZoneJoseZoneZoneJuneZoneZoneZoneZoneZoneFreeZoneZoneZoneZoneEnriZoneZone
ZoneMetrMEYEhandMercKronBoscAsifFounAlekCityFirsFiesParaMistWoodGDeBStudSTARNormAnhoSignOper
NighBravCrayTracOlivTotoAdobworlStarWindSoftBoscChouSmokLongIronEmilValiIoseOthePeopLastXVII
BossAgatFranXVIIMadoMalbHonoAdriGeraAcadGiovPocoIntrVasiBogdRollFellJameThisIridIrinAlamGuit
SiegSharJohnMaraFarlTaylWindPlayDISCSideSwitMollVikrArtuLEGOCaroMoonMicrJohaDATSJerohandhand
handJeweMondAstrBillFindVaniClarElinBoriSanjAndrMichtuchkasAneeBenQ


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group