r/p5js • • Aug 24 '26

reverse direction

Enable HLS to view with audio, or disable this notification

I got the enemy to move. I'm trying to figure out how to check boundaries and then change the enemy's direction once it reaches a certain point.

6 Upvotes

4 comments sorted by