Automatic rotation of character on the ground

Get help using Construct 2

Post » Sat Dec 27, 2014 5:53 am

hi everybody.
I want to know how can i rotate character automatic on the ground like this picture:
thanks alot.
Image
B
4
Posts: 23
Reputation: 850

Post » Sat Dec 27, 2014 4:53 pm

you need to make an everything to a physical object, but then becomes you 8 direction tool useless.
For player moveing you need to use custom movement and let him accelrate in the direction that it pressed.
This will be very tricky and you will loose a lot of performance
Read this:
yeah, i really like to say that you should "Read this:"
B
12
S
5
Posts: 138
Reputation: 1,490

Post » Sat Dec 27, 2014 5:51 pm

a trick would be to know the slope at all points in advance.. if you knew that, then by using a lookup table you could figure out the angle. it'd work for predefined layouts and surfaces that do not change.

a lookup table would be resource efficient.
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Sat Dec 27, 2014 5:53 pm

PS: another way would be to find which object you are standing on, assuming that the surface is a series of connected blocks. if that is the case, then you can just find the angle of the object you are in contact with, then adjust your own angle accordingly.

R
B
7
S
3
G
1
Posts: 184
Reputation: 1,352


Return to How do I....?

Who is online

Users browsing this forum: bluesun66, jasontoups and 2 guests