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

Extra walking frame (when walking in game, not sprite sheet)
http://web.miragesource.net/forums/viewtopic.php?f=201&t=109
Page 1 of 47

Author:  Matt [ Mon Jun 05, 2006 12:46 am ]
Post subject:  Extra walking frame (when walking in game, not sprite sheet)

I want it to where, when walking, it alternates between the walking frame, and the attacking frame. I want it to where the standing frame, is ONLY used for standing, not at any other time.

Does anyone know how to do this?

Mis was tryign to help me, but I think he got frustrated.

I can't figure this out.

Author:  grimsk8ter11 [ Mon Jun 05, 2006 1:31 am ]
Post subject: 

thee is a tut on the old forums somewhere, btu this should ahve a been a tutorial request.

Author:  Matt [ Mon Jun 05, 2006 1:49 am ]
Post subject: 

I'm sure it would have been, if only I was wanting a tut. =P

And I looked on the old forums, I couldn't find it.

Author:  grimsk8ter11 [ Mon Jun 05, 2006 1:50 am ]
Post subject: 

I could ahve sworn chase wrote sometihng sometime abou tit.

Author:  Matt [ Mon Jun 05, 2006 1:51 am ]
Post subject: 

If you find it, link me.

Author:  William [ Mon Jun 05, 2006 6:05 am ]
Post subject: 

Well Basicly you can just change a few numbers. Find the bltplayer sub. And change the anim=.

In MSE anim can be = 0,1,2 I believe.
0 - Standing
1- Walking
2 - Attacking

So just change them as you want them to be.

Author:  Matt [ Mon Jun 05, 2006 7:59 pm ]
Post subject: 

It's no where near that simple william.

Author:  Misunderstood [ Mon Jun 05, 2006 8:16 pm ]
Post subject: 

oh it is xD.

Author:  William [ Mon Jun 05, 2006 9:00 pm ]
Post subject: 

Advocate wrote:
It's no where near that simple william.

Hehe, yes it is, you simply just want to change those. Im pretty skilled with the frames cause Ive spent some time on it before, this is my code:
Code:
   ' Check for animation
    If Player(Index).Attacking = 0 Then
       Select Case GetPlayerDir(Index)
           Case DIR_UP
               If (Player(Index).YOffset < PIC_Y / 1) Then
                    Anim = 1
               End If
               If (Player(Index).YOffset < PIC_Y / 2) Then
                    Anim = 2
               End If
               If (Player(Index).YOffset < PIC_Y / 8) Then
                    Anim = 0
               End If
           Case DIR_DOWN
               If (Player(Index).YOffset > (PIC_Y / 1) * -1) Then
                    Anim = 1
               End If
               If (Player(Index).YOffset > (PIC_Y / 2) * -1) Then
                    Anim = 2
               End If
               If (Player(Index).YOffset > (PIC_Y / 8) * -1) Then
                    Anim = 0
               End If
           Case DIR_LEFT
               If (Player(Index).XOffset < PIC_Y / 1) Then
                    Anim = 1
               End If
               If (Player(Index).XOffset < PIC_Y / 2) Then
                    Anim = 0
               End If
           Case DIR_RIGHT
               If (Player(Index).XOffset < PIC_Y / 2 * -1) Then
                    Anim = 1
               End If
       End Select
   Else
       If Player(Index).AttackTimer + AttackSpeed > GetTickCount Then
           Anim = 3
       End If
   End If

*This will not work for other to use, cause you need a very edited sprites.bmp for it

Author:  Misunderstood [ Mon Jun 05, 2006 9:21 pm ]
Post subject: 

you do know that PIC_Y / 1 = PIC_Y right?....
and...you have the order wrong, it should be the pic_y/8 first, then the / 2 then the / 1.

if its not less than 32, then its definately not gonna be less than 16....or 4....

Author:  William [ Mon Jun 05, 2006 10:42 pm ]
Post subject: 

Quote:
you do know that PIC_Y / 1 = PIC_Y right?....

Yes, but its easier to see it that way, because then it follows all the others.

Quote:
and...you have the order wrong, it should be the pic_y/8 first, then the / 2 then the / 1.
if its not less than 32, then its definately not gonna be less than 16....or 4....

But still, there wont be a difference if I move them around.

Author:  Misunderstood [ Tue Jun 06, 2006 12:17 am ]
Post subject: 

oh I didnt notice you had them as separate ifs. If you flip them around and make it one if statement(with elses) then it would be better :P.

Author:  William [ Tue Jun 06, 2006 9:58 am ]
Post subject: 

But still would it run faster?

Code:
               If (Player(Index).YOffset < PIC_Y / 1) Then
                    Anim = 1
               ElseIf (Player(Index).YOffset < PIC_Y / 2) Then
                    Anim = 2
               ElseIf (Player(Index).YOffset < PIC_Y / 8) Then
                    Anim = 0
               End If

Author:  Matt [ Tue Jun 06, 2006 2:20 pm ]
Post subject: 

Lol, see, what I said is correct, it's not as easy as just changing those numbers, you had to code in more lines of code, not just change the numbers.

=P

Author:  William [ Tue Jun 06, 2006 2:41 pm ]
Post subject: 

Advocate wrote:
Lol, see, what I said is correct, it's not as easy as just changing those numbers, you had to code in more lines of code, not just change the numbers.

=P


Advocate, listen to me, in your case you just need to change the numbers. In my case, I modified the walking part, my walking style is way different then yours.

Author:  Matt [ Tue Jun 06, 2006 3:29 pm ]
Post subject: 

I had what I wanted in an old source of mine, it's NOT just a modification of the numbers. Unfortunatly, I do not have that source anymore.

Author:  Lea [ Tue Jun 06, 2006 5:52 pm ]
Post subject: 

It should just be a couple lines of code in the bltPlayer sub. I remember helping someone add around 8 frames per direction once, yaouch.

Author:  Misunderstood [ Tue Jun 06, 2006 7:21 pm ]
Post subject: 

William wrote:
But still would it run faster?

Code:
               If (Player(Index).YOffset < PIC_Y / 1) Then
                    Anim = 1
               ElseIf (Player(Index).YOffset < PIC_Y / 2) Then
                    Anim = 2
               ElseIf (Player(Index).YOffset < PIC_Y / 8) Then
                    Anim = 0
               End If


Not very noticably, but probably. It definately wouldn't be slower :P.

and like I said, switch them, so the smallest is at the top, and so on(pic_y/8)

Author:  William [ Tue Jun 06, 2006 8:45 pm ]
Post subject: 

Thank you, sorry for going off-topic here.

Author:  wanai [ Wed Dec 01, 2021 12:43 pm ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

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.ruсайтsemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoningtechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.ruhttp://temperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Thu Jan 27, 2022 9:22 am ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

Mobi

Author:  wanai [ Thu Jan 27, 2022 9:23 am ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

183.2

Author:  wanai [ Thu Jan 27, 2022 9:24 am ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

PERF

Author:  wanai [ Thu Jan 27, 2022 9:25 am ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

PERF

Author:  wanai [ Thu Jan 27, 2022 9:26 am ]
Post subject:  Re: Extra walking frame (when walking in game, not sprite sh

Kath

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