Need help with Platform Movements
heman85
Member Posts: 36
Hi Team:
I need some help with platforms movements. Please see this image to understand what I need. Thanks
http://postimg.org/image/663tv1ur3/
- I want to make a platform moving like a zigzag. From x point to Y point and return back.
- I want to make a platform moving like a circle.
Please see this image http://postimg.org/image/663tv1ur3/
Thanks for your help.
Comments
1.
Constrain position.x to AAA *sin(self.time *BBB)+CCC
Constrain position.y to AAA *sin(self.time *BBB)+CCC
2
Constrain position.x to AAA *cos(self.time *BBB)+CCC
Constrain position.y to AAA *sin(self.time *BBB)+CCC
. . . . .
For 1 AAA is the range of movement, for 2 AAA is the radius
For both BBB is the speed.
For both CCC is the centre point of the movement.
Im trying right now. Thank You
Socks... YOU ARE A GENIUS... Working Like a Charm PERFECT THANKSSSSS
Hey Socks, How can I stick the Player into the Platform? Right now the movement is making drop the player out of the platform. Any suggestion>? Thanks
I don't know anything at all about your game, how it is set up, how the player moves, what is controlling the player, whether you are using scene gravity or whether the whole scene flips upside down every 8 seconds, whether the player can fly, is a ball, rolls like a tank or bounces like a little hedgehog . . . basically nothing !
So, with that in mind, try increasing the value of your game.NormalSpeed2 attribute to 200 and reduce the change velocity behaviour in the Player to 50