Changing animation while dragging?

Get help using Construct 2

Post » Tue Feb 04, 2014 11:11 pm

Hi guys.. This is my first question here, on this forum..

I want to do this:

1. when I start the game, the sprite has default (middle) animation...
2. and also the sprite has hidden animations for all directions (up/down, left,right...)
3. but when i start dragging (for example north-east side), the sprite need to change its animation to north-east animation (that I mentioned in the second point^)

I hope you got my point
B
6
Posts: 11
Reputation: 291

Post » Tue Feb 04, 2014 11:13 pm

*sorry for the double post
this is my project:
mediafire.com /
?0wlekt2hrph4bxd
*I dont designed the sprite. Ive downloaded from this forum, several days before.

Or with picture:
s27.postimg.org
/u77se5vfn/1_copy.png
B
6
Posts: 11
Reputation: 291

Post » Tue Feb 04, 2014 11:27 pm

you can get the touch movements angle with the expression touch.angleAt

add a system compare condition to an is dragging event and you should be ready to go..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Feb 04, 2014 11:44 pm

I got it.. Thanks for the help!
B
6
Posts: 11
Reputation: 291


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 15 guests