How do I stick the player to a rotating object

Get help using Construct 2

Post » Thu Nov 24, 2016 10:52 am

Hello there!
My project consit on a barrel like rotating object with the player in it, and I want the player to be stick to the ground instead of sliding on it
how can do that?
B
4
Posts: 10
Reputation: 220

Post » Thu Nov 24, 2016 3:09 pm

Be more specific. upload a image.
B
48
S
9
G
10
Posts: 200
Reputation: 8,258

Post » Thu Nov 24, 2016 8:43 pm

Use the behavior pin on the player. Then you need to go into the barrels animations and create an image point where you want the origin of the player to be. Then use this code.

On start of layout --> (player) pin pin to object (barrel) image point (x)

This will make your player stay with barrel as well as rotate with it instead of sliding.
B
8
S
3
Posts: 5
Reputation: 714

Post » Fri Dec 16, 2016 12:51 am

Message: Galaxxxy can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
When the player is on a flat ground everything is going OK on a slope i manage to get it right by geting the angle of the platform and transfer it to the player, but when the platforms are moving, its going completely crazy

Image

you can DL my project here
https://www.mediafire.com/?qsz9ik4erykim45

Thank you for your help
B
4
Posts: 10
Reputation: 220


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, tarek2 and 25 guests