How i can set animations sprites with PathFinding

Get help using Construct 2

Post » Wed Jan 06, 2016 2:18 am

Hi im making a Top down game and i have an issue about how to set animations enemy sprites for each directions, i'm using PathFinding option i disabled the Rotate object in menu.

NB: i don't wanna activate Rotate object option.

Image

Image
B
5
Posts: 27
Reputation: 281

Post » Wed Jan 06, 2016 2:26 am

You can use sprite.Pathfinding.MovingAngle to set the animation.
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 » Wed Jan 06, 2016 2:31 am

LittleStain wrote:You can use sprite.Pathfinding.MovingAngle to set the animation.


Thanks for your reply i know this method but i can't detect which angel is right up down or left and how i will create a condition about it
B
5
Posts: 27
Reputation: 281

Post » Wed Jan 06, 2016 11:49 am

Angles in Construct2 are set up this way:

0 = left
90 = down
180 = right
270 = up

You shouldn't test for the exact angle, though..
Use system is withing angle, should work nicely..
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 » Wed Jan 06, 2016 3:19 pm

LittleStain wrote:Angles in Construct2 are set up this way:

0 = left
90 = down
180 = right
270 = up

You shouldn't test for the exact angle, though..
Use system is withing angle, should work nicely..


I'm beginner if you don't mind can you give me an example just in case of one angle?
B
5
Posts: 27
Reputation: 281

Post » Wed Jan 06, 2016 3:45 pm

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests