Point And Click Movement Animations

Get help using Construct 2

Post » Sat Feb 07, 2015 10:47 pm

Hey guys!
I'm developing a Point And Click game in Construct. Everything is correct setup, but I'm having some issues related to the sprite movement.
For the basic sprite movement, I'm using Rex Move To Behavior plugin (avaible in this forum )
The problem is that my sprite has four different animations. How do I switch them according to the direction as it moves?
I really appreciate any help for solving this. Perhaps it is easy, but I can't figure out the logic for this.

I'd attached the .capx containing an example of what I am trying to do. Thanks! :-)
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 11
Reputation: 247

Post » Sat Feb 07, 2015 11:09 pm

moveTo -> compare moving angle.

If the moving angle is between 90 and 270, the character is moving to the left. Otherwise it is moving to the right. You can adjust that so you can also know if your character is moving up and down.
B
12
S
7
G
7
Posts: 447
Reputation: 4,270

Post » Sat Feb 07, 2015 11:33 pm

Thanks for reply, but could you be a little bit more specific about the moving angles? I'm still really newbie in Construct 2 and programming... Many thanks for help! :-)
B
5
Posts: 11
Reputation: 247

Post » Sun Feb 08, 2015 2:00 am

Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,145

Post » Sun Feb 08, 2015 2:05 pm

About the moving angle : here the corresponding directions and regarding moving angles :
→ 0°
↘ 45°
↓ 90°
↙135°
and so on
B
12
S
7
G
7
Posts: 447
Reputation: 4,270


Return to How do I....?

Who is online

Users browsing this forum: a1oleg and 16 guests