How do I angle a sprite based on 360 degree floor movement

Get help using Construct 2

Post » Thu Feb 18, 2016 12:37 am

As it says in the title, kind of like Sonic running along upside down surfaces.
B
8
S
1
Posts: 58
Reputation: 570

Post » Thu Feb 18, 2016 1:19 am

Quick way I can think of is use "On collision with another object" - set Sonic's angle as the same angle as that object.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Feb 18, 2016 1:23 am

oosyrag wrote:Quick way I can think of is use "On collision with another object" - set Sonic's angle as the same angle as that object.

With platform objects you mean? Don't know that would work out so well.
B
8
S
1
Posts: 58
Reputation: 570

Post » Thu Feb 18, 2016 1:29 am

You're right, I'm not so sure it would either.

Remember behaviors are just shortcuts - everything a behavior does for you you can actually recreate with events. They might have some limitations, so if you want a more complex behavior, you may need to create it yourself with events.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Thu Feb 18, 2016 3:25 am

I do believe someone made a capx of such a movement. There's also a behavior someone made. If you opt to use events the way to do it is with detector sprites. Basically you place one at the left-bottom of the player and one at right-bottom. Then using a loop move them down till they hit the ground. The angle between the two detectors would be the angle of the ground.
After that you'd do the motion. It's simple enough even without behaviors, but I don't have time to explain it.

There's also a website you could probably Google that explains the actual sonic the hedgehog physics in detail. Could be useful.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Thu Feb 18, 2016 12:30 pm

Sorry, I meant the animation for a sprite that overlaps the player object rather than the motions themselves.
B
8
S
1
Posts: 58
Reputation: 570

Post » Mon Feb 22, 2016 1:48 pm

Bump?
B
8
S
1
Posts: 58
Reputation: 570


Return to How do I....?

Who is online

Users browsing this forum: FacuLNF and 62 guests