Moving Platform - Make actor stay with platform
SmallBytes
Member, PRO Posts: 21
Can someone point me to a tutorial or help. I have a moving platform in my game and need the main actor (character) to travel with the moving platform when it jumps on it.
I have searched the forum but can not find anything.
Thanks
D
I have searched the forum but can not find anything.
Thanks
D
This discussion has been closed.
Comments
there was a video of a game were an actor jumps on small planets and then gets eaten by monsters at the end of every level. how was that done? i saw it here so i think it was made in GS. might be wrong though.
any help would be appreciated and would help me continue development of my next game.
thanks!
if player collides with moving ledge constrain player's self motion X to 150 to move right -150 to move left(or whatever speed your ledge moves at)
if the ledge is changing between left and right you'll need a global attrebute so both the ledge and the player know which way the ledge is moving
hope that helps
-Ash
Create a attribute in the game, index type, so we can storage there the value of the platform
Next the platform can save in this attribute his position.x, you can create a timer that do this every 0 seconds
Next you can make the actor when collides with the plattform, and when it does you can make it Constrain Attribute Actor.x to this attribute.
Check this example.
www.cristianparada.com/salad/test_standplatform.zip
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User