Hi, I was watching @jamie_c's video on double jumping/walking left and right, the walking works perfectly but after a couple seconds of walking in one straight line, the character slows down, until it stops, how can I make it work perfectly just like @jamie_c's version. Thanks.
I had the same problem and I solved it by doing this rule bla bla bla... do every 0 seconds change attribute self.motion. linear velocity.X to something
your probably using a rule like when key 'right arrow key' is pressed do timer: every 0 seconds (not 0.2) change attribute self.motion.linear velocity.x to something (lets say 200. you have to play with this a little but on how fast you want the player to move)
Comments
rule bla bla bla...
do
every 0 seconds
change attribute self.motion. linear velocity.X to something
hope this helps
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Create Timer: Every 0.2 seconds - Change attribute: self.linear velocity.x
but change the self.linear velocity.x attribute to what?
do
timer: every 0 seconds (not 0.2)
change attribute
self.motion.linear velocity.x to something (lets say 200. you have to play with this a little but on how fast you want the player to move)
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
1. Make sure your character and platforms don't have any friction to slow your player down.
or
2. Use a Constrain Attribute instead of the Change Attribute for setting the players movement speed left and right.
Let me know if that makes sense to you or if you need a more detailed explanation.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮