Pathfinding Movement Custom

Get help using Construct 2

Post » Thu Dec 18, 2014 6:44 pm

Hey guys / Gals

Trying to get a tank to point in the right direction when using the pathfinding.. right now he just moves along the path in an awkward way - how can I have it set it angle depending on what way it's facing???
Last edited by desjardins2014 on Thu Dec 18, 2014 9:12 pm, edited 2 times in total.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Dec 18, 2014 7:48 pm

anyone?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Dec 18, 2014 8:17 pm

There's a "Rotate Object" option in the PAthfinding behavior...
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
19
S
5
G
2
Posts: 534
Reputation: 3,235

Post » Thu Dec 18, 2014 8:28 pm

Ya but it needs three params degree, x and y so what degree would always point in it's motion path?? does that make sense if he moving right I want him to point right and so on
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Dec 18, 2014 8:32 pm

Attached capx for viewing
You do not have the required permissions to view the files attached to this post.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Dec 18, 2014 8:50 pm

Like this?

tank_sample.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
19
S
5
G
2
Posts: 534
Reputation: 3,235

Post » Thu Dec 18, 2014 9:08 pm

ohh thank you - thats perfect.... thanks bruno
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Thu Dec 18, 2014 9:12 pm

:( well I did what you added in the on moving and it dont work for me did you make changes to anything else?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Fri Dec 19, 2014 12:25 pm

Yes. Tank orientation must be to the right. Angle 0 is to the right. :)

Remember to rotate all frames in the animation.

Cheers.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
19
S
5
G
2
Posts: 534
Reputation: 3,235


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 47 guests