Actor stops moving after collision
ETGgames
Member, PRO Posts: 190
I have a platform game with the normal left, right, jump and shoot buttons. There are walls throughout the game that the player collides into. However, for example, if there is a hurdle that the actor has to jump over, and if the player collides with the wall (which makes his linear x velocity 0 obviously) and he jumps, he will jump higher than the hurdle, but even when he is no longer colliding with the hurdle, his linear velocity x remains at 0 until the right/left button is let go of and then pressed again.
Comments
For your movement buttons if you are currently using 'when touch is pressed' try using 'when touch is inside' instead.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I'm actually using the keyboard to control the player its for computers
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
Use move or accelerate that way as long as you hold down key actor will keep trying to move forward.
The problem with that is the player actor is always accelerating down, and when i use the move behaviour while I'm in the air, the acceleration become much lower than i set it for some reason, or when i try to jump while moving, i can only jump very low. So basically, using the move behaviour make the linear velocity y much lower than it should be...any workaround?
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
and I've tried changing the move type to stacked same problem
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
In my plat former game I use high numbers to get a good jumping effect you have to play around with it, So your actor doesn't look like he's floating.
I use accelerate to move left and right set at I think 1400-1600 and my jump is a combination of change liner velocity Y 1000 and accelerate to 1000 or so. and I have a constant accelerate down of 2600. This is the hit zone unseen in game
My visible player constrained to the above also has accelerate behaviors set the same for moving left and right for animation proposes.
You can see my game here with player jumping and moving.
http://forums.gamesalad.com/discussion/74268/my-games-steam-jack-and-martian-flapper-bird-free-for-the-weekend-nov-21-23#latest
Super Mario Much....But I don't want them to accelerate I just want the player to move
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
and i know i can set the maximum speed, but at points in the game there are things that make the player go really fast, that would exceed the max speed limit
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
Very Much..Super Mario,lol
and you can change max speed on the fly I do that in another game.
Urgh! It would be so much easier if game salad didn't have these bugs in their game engine
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com
What Bug?
Um...what this hole post is about bug
My Games:
https://itunes.apple.com/us/developer/ethan-sarif-kattan/id825823924
https://play.google.com/store/apps/developer?id=ETG+Ltd.
Website: https://etggames.com