How do I make my player animation play for left and right??

Get help using Construct 2

Post » Tue Feb 21, 2017 3:00 pm

Hello and please help me!
Got into some problems with my player-sprite animation it's a simple turn left or turn right animation 2 frames.
I uses the rex moveto plugin for my player to move only in the X so hight never change.
Image

but need the right animation to play when X-Raise and the left animation when X-fall and if not move the idle animation.

Please help :)
B
4
Posts: 4
Reputation: 208

Post » Tue Feb 21, 2017 4:09 pm

'Some problems', what are the problems? Seems like you know what you're doing here. How is the ship moving, is it by touch or keyboard? Normally it is just left pressed play left animation, right pressed play right animation, else play idle animation.
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Feb 21, 2017 7:17 pm

It's touch, and I kind of have the idea for how it should work, but cannot figure out the code to get it working.

Any way to make it play animation when X-Raise and X-Lower ?
B
4
Posts: 4
Reputation: 208

Post » Tue Feb 21, 2017 9:03 pm

This will change the sprite to Green when sliding left and Red when sliding right and can be used the same way for your rocket sprite to change animations when sliding left and right.

Image

CAPX

https://www.dropbox.com/s/qandnxsm6ztahm8/Slide%20Finger%20Example.capx?dl=0
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 23 guests