Rus34friend Posted October 26, 2016 Share Posted October 26, 2016 Hello. I need to implement a rabbit movement between the two boundaries. For example, as an owl or a mushroom in Mario. How can I do that? Link to comment Share on other sites More sharing options...
drhayes Posted October 26, 2016 Share Posted October 26, 2016 Give it a physics body and when it collides with something on the side (in an Arcade.Body, it's "touching") switch its x velocity (e.g. "thing.body.velocity.x *= -1;"). Link to comment Share on other sites More sharing options...
Recommended Posts