Chilly14 wrote: ↑Tue Jul 23, 2019 7:39 am
Thank you!
Added in 12 minutes 36 seconds:
Okay, it's working, for the most part, but somehow the Thwimp never stops jumping forward even after hitting a wall. Plus, even if it is set to go right, it still jumps left. How do I fix this?
You probably removed the data.direction from the line where it sets the speedX value when a jump begins. I don't know exactly what integer it is, so here's an example on how it MIGHT look vs how it SHOULD look:
v.speedX = 2
should be
v.speedX = 2 * v.direction
v.direction automatically changes when the thwimp hits a wall.
If I'm talking utter nonsense here, please share your new thwimp file on
https://hastebin.com/