The Daily Click ::. Forums ::. Klik Coding Help ::. Trouble with walking animation
 

Post Reply  Post Oekaki 
 

Posted By Message

Chatter J



Registered
  22/11/2008
Points
  2
17th December, 2008 at 04:39:11 -


I've been at it for five hours...I really don't know what I'm doing wrong.

I'm doing a retro platformer, and everything has been fine up until now, but I can't get the walking animation to work in my fastloop platform engine.

I have the walking animation set like this:

Repeat while "Right Arrow" Is pressed

-Start "Move" Loop 3 Times
-Set Animation Sequence to "Walking"
-Set "Direction" to 1 [facing right]

[Same for Left Arrow]

X Repeat while "Right Arrow" is pressed
X Repeat while "Left Arrow" is pressed
-Restore animation sequence


Now my sprite plays the walk and stop animations, but when I try to play any other animations...

Upon Pressing "B"

-Change Animation sequence to Kicking


...they don't play. Before I added in the walking animation, my sprite could kick while moving, jumping, etc. Now it won't play any animations except walking and stopping. I've tried a tone of different solutions with flags and AV and stuff, but if I'm missing something ridiculously simple, please let me know.

I'm sorry if this is the most noobular of noob questions, but I have been at this for hours, and bothering the forums is a last resort for me. All my searches have turned up squat, so I was hoping someone could give me a hand?

Here's my source:

http://www.mediafire.com/?ytynrzdy0ny

Thanks for the help!

Chatter




 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
17th December, 2008 at 05:37:10 -

Line 18:
X Repeat while "Right Arrow" is pressed

X Repeat while "Left Arrow" is pressed
-Restore animation sequence


If you press B the animation kick won't play (or only play for 1 MMF frame) because you've told it to restore animation sequence whenever you're not pressing a button to move.

Either Delete "Restore animation sequence" and find another way of setting animation to "stopped" when the player is not moving. Eg. comparing to movement speed. Or add the condition "X animation kicking is playing"

I hope this helps

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Chatter J



Registered
  22/11/2008
Points
  2
17th December, 2008 at 07:07:50 -

Look like all I really needed was a break. Couple of hours playing Persona3 and I figured it out.

It was good advice not using "Restore Animation", though. That got me started on the right track. Thanks a lot!



 
n/a

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  370

VIP MemberCardboard BoxThe Cake is a Lie
17th December, 2008 at 23:10:55 -

Use the basic Platform movement extension.

Now if you wanted to kick while moving, here's what you'd do.

First make two seperate animations. one for a basic kick, and another for moving and kicking (it would seem awkward if it wasn't a karate type kick... )

Now, this is for a walk kick.

Walking animation is playing
+ Upon pressing (Kick button)
-Change animation to walk kick

And here is an idle kick

Upon pressing (Kick button)
- Change animation to kick

The fastloop movement engine is something I'm not familiar with, so that's what I know If you COULD substitute that for this.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click