Mirage Source

Free ORPG making software.
It is currently Fri Apr 19, 2024 7:08 pm

All times are UTC




Post new topic Reply to topic  [ 1162 posts ]  Go to page 1, 2, 3, 4, 5 ... 47  Next
Author Message
PostPosted: Mon Jun 05, 2006 12:46 am 
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.


Top
  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 1:31 am 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
thee is a tut on the old forums somewhere, btu this should ahve a been a tutorial request.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 1:49 am 
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.


Top
  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 1:50 am 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
I could ahve sworn chase wrote sometihng sometime abou tit.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 1:51 am 
If you find it, link me.


Top
  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 6:05 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 7:59 pm 
It's no where near that simple william.


Top
  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 8:16 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
oh it is xD.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 9:00 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 9:21 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 10:42 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 12:17 am 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 9:58 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 2:20 pm 
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


Top
  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 2:41 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 3:29 pm 
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.


Top
  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:52 pm 
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
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 7:21 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
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)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 8:45 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Thank you, sorry for going off-topic here.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
PostPosted: Wed Dec 01, 2021 12:43 pm 
Online
Mirage Source Lover

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


Top
 Profile  
 
PostPosted: Thu Jan 27, 2022 9:22 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479401
Mobi


Top
 Profile  
 
PostPosted: Thu Jan 27, 2022 9:23 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479401
183.2


Top
 Profile  
 
PostPosted: Thu Jan 27, 2022 9:24 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479401
PERF


Top
 Profile  
 
PostPosted: Thu Jan 27, 2022 9:25 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479401
PERF


Top
 Profile  
 
PostPosted: Thu Jan 27, 2022 9:26 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479401
Kath


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1162 posts ]  Go to page 1, 2, 3, 4, 5 ... 47  Next

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:  
cron
Powered by phpBB® Forum Software © phpBB Group