Make the sprite react with play movement

Get help using Construct 2

Post » Thu May 10, 2012 2:21 am

alright so i have made 2 gifs and 1 jpeg of a detective walking left, right, and looking straight.

What i would like to happen is when the player is holding down the left arrow key i simply want the detective walking left animation to play

when the player clicks the right arrow i would like the player gif to change to the detective walking right.

When the player has no keys pressed down i would like the gif to change to the jpeg of the detective standing still

Is this even possible?
B
3
Posts: 3
Reputation: 381

Post » Fri May 11, 2012 1:27 am

anyone answer this?
B
3
Posts: 3
Reputation: 381

Post » Fri May 11, 2012 2:15 pm

yes, you just have to write the event exactly as you described them.
Also... gifs? c2 only uses png or jpg sequences...Yann2012-05-11 14:15:39
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Nov 23, 2012 7:13 am

I'm struggling a bit with this right now. I have a gif and I just make the animation end, however on keydown W or up arrow setanimation to beginning of walkLeft in my case.

I ran into an issue of when a user holds both up and left, it's really awkward, no animations happen and the movement is locked awkwardly.
B
12
S
2
G
4
Posts: 16
Reputation: 2,652

Post » Fri Nov 23, 2012 7:45 am

Yann,

You can directly import gifs by dragging and dropping them into C2. It will parse out the frames.

Interestingly, it won't do that if you create the sprite first and try to load the gif through the dialogue box.


Baggins,

Could you share an example of where you are messing up?
B
20
S
4
G
2
Posts: 124
Reputation: 2,482


Return to How do I....?

Who is online

Users browsing this forum: bluemonkey, Khamsou and 24 guests