How to make actor stay on moving platform?
VGX
Member Posts: 796
How do I make an actor stay on a moving platform when it moves left and right?
I don’t want to keep pressing move so my actor walks as the platform moves. I have tried the constrain thing but actor gets stuck on platform and won’t jump off. Please help.
Thanks
I don’t want to keep pressing move so my actor walks as the platform moves. I have tried the constrain thing but actor gets stuck on platform and won’t jump off. Please help.
Thanks
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
here is what you need for this
a real global attribute named "ledge speed"
a Boolean global attribute named "on a ledge"
constrain your players speed to what ever speed he normal walks at + ledge speed
example:
If right walk button is down
Constrain players self motion X to 80+ game.ledge speed
then if player collides with a moving ledge make a rule in the ledge,
constrain game.ledge speed to self motion X
then in the other wise,
change game.ledge speed to 0
so if the player is on the ledge he will move with it, and if you press the right button it will add walking speed + the ledge speed
hope that helps
So actor jumps on platform and let the platform take me from a to b, without me pressing any buttons.
Then I can jump off with no probs, because when I try the constrain the actor gets stuck on the platform and won't jump off.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
1. Moving platform - left to right
2. Actor jumps on platform and gets taken from point A to point B.
3. Can jump off the moving platform and jump back on without geting stuck
I will pay £5 what ever that is in dollars or I can do you logos. Please, Thanks
This is £10 but it looks like it contains a moving platform (you may want to confirm before you purchase): http://www.deepblueapps.com/platform-templates/
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I want the actor to jump on the platform and stay on the thing. without me having to walk the actor as the platform moves. I want the actor to jump on, I take my fingers off the screen and watch the platform take the actor from one side of the screen to the other.
How do I do this please?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
In my game Alien hopperz i've got 1000 frictions on the moving platform and 600 on the player.
Maybe you could play about with the friction attribute.
It’s not a bug – it’s an undocumented feature
http://forums.gamesalad.com/discussion/54629/will-pay-or-design-what-ever-for-a-template-please#latest
thanks
Lots of us are just coming down from a 2 week marathon for the Gamespot Contest, and may not be back on par with forum help, yet.
I hope you keep at it, and get the help you need, and get it figured out. Stick to this thread, and post your progress, or ask for more help, even though it's taking a while to get the help you need right now.
I have attached a very stripped down version from what I used in my game LAD ....
Press left to move the pink block over the lever, this switches the mechanic to make the hanging platform start to move, when it is in range, press right and then up to 'jump' and hang on to the platform. When it reaches the other side (you will not be able to move once constrained on to the platform) you will drop off and are free to move again.
This is the principal you are looking for, just not on top of the platform but hanging from underneath, it can easily be adapted though to have you standing on top of the platform.
Another option I'm always tempted to think about when an actor needs a sudden qualitative/characteristic change is to kill off the old actor and spawn another one with a different set of rules - i.e: (as a quick and rough example) when your actor hits the platform he spawns his replacement (and is destroyed himself) - his replacement has a rule that tracks the platform - as soon as he leaves the opposite happens . . . or something like that.
The community is still the best I have witnessed.
Between mine and @socks, there is plenty there for you to be able to adapt it to your needs.
For some reason @socks, I love the simplest of things like the way you make your cubes roll over all the time when they move
beefy one is a bonus. got a new idea to add to my game after testing that out. thank you to
@Socks The good ol' Grippy™ huh ... aka Friction in GS terms.
Whats that? New tagline ...
The answer is most probably: AAA*sin(self.Time*BBB)+CCC ... If not .... turn up the freakin' Grippy™
Wow ! :-O Images look great !