How to play animations ?

For questions about using Classic.

Post » Mon May 30, 2011 2:04 pm

I have a sprite character on screen, it has a platform behavior set and I have tagged animation for stopped, walking and jumping. Now I have added animation for shooting but no matter what I try the animation doesn't play except for the first frame. If I press the Fire action it only displays the first frame and when I ler go it goes back to stopped animation.
please help me.
B
2
G
1
Posts: 13
Reputation: 476

Post » Mon May 30, 2011 2:40 pm

There are a lot of possible causes for this. One of the most common is using two conditions one right after the other for switching. If that's the case here, then this post may help you.
Also, check for a correct animation frame speed.

If both tips don't help, setting up a demo cap showing the problem helps a lot helping you :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon May 30, 2011 3:09 pm

what do you do to advance the animation every frame ?
and how to make it loop ?
the guys who made construct thought about everything but a simple frame advance function. wtf, I think I'm gonna give up on construct altogether, there is almost no documentation, the probgram is awesome but some the simplest things are a hell to make them work. i have trying to solve this problem for days and NOTHING works, so I just give up, I'll buy a GameMaker or something else.
B
2
G
1
Posts: 13
Reputation: 476

Post » Mon May 30, 2011 4:40 pm

I agree that documentation is an issue, of course pretty much all game creation programs are light on documentation. That said, I've personally found Construct much easier to get into than GameMaker or any other game creation software I've tried.

The issue you're having sounds like a simple fix and it probably has to do with naming your animation groups and then controlling them based on those names in events. However, as Tulamide offered up, this is likely somethng where posting your .cap would make it easiest for you to get help.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Mon May 30, 2011 4:46 pm

Don't get me wrong, I think construct is freaking AMAZING.
here is the file:
http://www.mediafire.com/?79ili97z57fmj7w
z - key jumps
x - should shoot
also, I always change things to get it working so this is not the only way i tried to do it.
B
2
G
1
Posts: 13
Reputation: 476

Post » Mon May 30, 2011 5:19 pm

From the beginning I could see that the player's running animation didn't work. Everything else seems to be playing fine though.

What I did was remove a number of your events, because they seemed to be preventing the running animation from working. This is what the current events look like with removals:



With that, all of the players run animation frames cycle now.

EDIT: Also, your shooting animation is only two frames, and the first one is pretty much the same as your stopped animation, so while it may look like only one frame is playing, both frames are definitely playing.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Mon May 30, 2011 5:29 pm

the run and jump animations work because they are tagged as running and jumping so there is no need to set them, the reason they didn't work in that file I posted is because I was trying to make the standShoot animation to work.
You can remove everything and running and jumping will still work.
B
2
G
1
Posts: 13
Reputation: 476

Post » Mon May 30, 2011 5:35 pm

I see. Nevertheless, with the removals all the animations including the standshoot animation play now.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Mon May 30, 2011 5:50 pm

the standShoot doesn't work
B
2
G
1
Posts: 13
Reputation: 476

Post » Mon May 30, 2011 5:53 pm

Hmmmm. That's strange. When I'm standing still and I press 'x' it plays for me.
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests