Author Topic: Please Help With Starting a Walking Animation  (Read 348 times)

Description: Sorry I'm a n00b; Bear With Me...

0 Members and 1 Guest are viewing this topic.

Offline Bahmo

Please Help With Starting a Walking Animation
« on: June 25, 2012, 11:36:34 am »
So I have this little game I've been working on; more as an exercise than anything else, and I'm stuck and stumped at this bit.  All of the tutorials I've done (granted that's not many, but you'd think I wouldn't need a lot of documentation as to how to do such a simple thing), haven't said much about animation.  Either they work with sprites that always play the same animation so long as they exist, or they use select frames of animation as different static images for different states of an object.  None has dealt with switching to an animated sprite with a specific event, which is why I am stuck on a rather fundamental aspect of game design.

I have a sprite that animates; I know because I've tested it in the preview function of the editor.  I have the events wherein I press left and right to make the object move left and right; I've done that many times before and it's no problem.  In addition, I have the action that changes it into the walking sprite, as well.  Yet it only plays one frame of the walking sprite, which has me boggled.

I've searched for an answer online, and apparently other people have been stumped by this as well, but the forum thread I found didn't give me a good idea of how to fix it; I tried.  To give an idea of what I've got so far, here are the relevant actions in the object:

Quote
Create
*Set variable image_speed to 0.1

<Left>
*If relative position (-4, 0) is collision-free for Only solid objects
^ Start of a block
*Set variable image_speed to 0.5
*Change sprite into [WalkLeft]
*Jump to position (-4, 0)
v End of a block

Note that the use of the image_speed variable is a recent addition; I was originally just using the "Change sprite" function, and that variable work was in an attempt to follow what I read on that other help thread, but no luck.

So what am I missing?

Offline lordcyber

Re: Please Help With Starting a Walking Animation
« Reply #1 on: June 25, 2012, 05:28:53 pm »
Maybe I can help you, but I need your source file to do some tests.The code is fine to me,so the problem can be other thing.

 

Alternate Earth Visitors


The fangames featured on Fusion Fangaming are non-profit fan-based works.

All commercial games represented, including character likenesses, graphic resources, sound effects, musical compositions, and level designs, are properties of their respective owners, companies, and other entities.

Please support the official games.

Hosted by The Spriters Resource.