error with animation

Get help using Construct 2

Post » Fri Jun 07, 2013 9:28 am

hello everyone i have an issue with an animation in my game
the animation name is down, when i press the down arrow i need to changue the frame of the sprite named "player" and reproduce the animation "down" but when i do that the frame is changued but the animation wont play until i press the button again.
here is my capx https://www.dropbox.com/s/7rdvo5ls2kscvhh/clase.capx
thanks.
B
21
S
4
G
2
Posts: 82
Reputation: 2,012

Post » Fri Jun 07, 2013 9:58 am

Hey !
I wanted to help, but having the free version limits blocked me in the debug process. I think the problem comes from the event "every tick -> set animation to check from the beguining". If I was the computer, I would put the first frame every tick because of this.
I think you should create a function for this, function taking only few params : animation name, UID of the player (or not, you have only one), ... and call this function instead of setting "check".
B
17
S
8
G
4
Posts: 473
Reputation: 6,221

Post » Fri Jun 07, 2013 6:01 pm

just call the animation? like on down arrow pressed - play animation "down"?
B
21
S
4
G
2
Posts: 82
Reputation: 2,012


Return to How do I....?

Who is online

Users browsing this forum: corpvs2, dop2000, farsen and 28 guests