How do I control the angle?

Get help using Construct 2

Post » Thu Jul 16, 2015 12:52 pm

Hi,
I have a box that only jump and move in one direction.. I want this box to rotate whenever he jumps and when landed I don't want him to be in a random angle I want him to land like a real life box? Please help. the problem is in the rotation.
Last edited by Moun glow on Thu Jul 16, 2015 2:42 pm, edited 1 time in total.
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Thu Jul 16, 2015 1:03 pm

my box lands in 45 degree other time in 60 degree and I want him to land like a real life box not like this.
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Thu Jul 16, 2015 1:05 pm

In what way does a real life box land?
I don't understand the illustration..


Do you mean you want to check the angle of the box on collision and if the angle is not 0 or 90 or 180 or 270, but somwhere in between choose the closest of those 4 angles an rotate toward it having the center of rotation on the point it landed?
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 » Thu Jul 16, 2015 1:15 pm

Yeah precisely, I always want him to land in 90 or 180 or 270 degree but he has to rotate at least 90 degrees?
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Thu Jul 16, 2015 1:30 pm

Any ideas??
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Thu Jul 16, 2015 2:41 pm

Please help guys??
B
11
S
2
G
1
Posts: 84
Reputation: 852

Post » Thu Jul 16, 2015 3:28 pm

Image
B
63
S
23
G
7
Posts: 1,480
Reputation: 10,796

Post » Thu Jul 16, 2015 6:37 pm

Thank you so much for you help, that was exactly what I'm looking for, thanks again !!
B
11
S
2
G
1
Posts: 84
Reputation: 852


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 6 guests