Actor falls with ground
Lucamc
Member, PRO Posts: 60
When my actor jumps on the ground somehow it falls down.
I tried putting the density to 10.000 but even then it is not stable.
Comments
Go into the Ground Actors Physics settings and un-check Moveable.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
But the game does not move then because my ground is moveable.
Is there an other way to do it?
Thanks
Depends on your specific game, if your ground is only moving side to side. You could Constrain the Y position of your ground to a set value so it does not move down (or up).
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
If you don't feel like it's too much work, you could re-code it without using physics and instead of gravity you can use a move/accelerate behaviour (270 degrees) in your players actor. The game will run alot smoother if you do so and you won't have to worry about your issue.
@jamie_c
how would the behaviour look like?
Thanks for the comments.
I have an actor and I would like it run and then jump.
I constrained the ground @jamie_c and it worked.
My problem now is that my actor is going into the ground and not running straight.
Any thoughts?
Thanks
Make sure the density of the ground is higher than the density of the player
Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!