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: 60
Reputation: 574

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
53
S
27
G
114
Posts: 1,697
Reputation: 64,442

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: 60
Reputation: 574

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
53
S
27
G
114
Posts: 1,697
Reputation: 64,442

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
94
S
33
G
113
Posts: 5,356
Reputation: 73,273

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: 60
Reputation: 574

Post » Mon Feb 22, 2016 1:48 pm

Bump?
B
8
S
1
Posts: 60
Reputation: 574


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 53 guests