Feedback
GameCanvas boundary examples keep sprites inside the canvas
- Status
- Fixed
- Fixed in
- v26.7.2
- Source discussion
- https://forum.objo.dev/d/561-gamecanvas-strange-behaviour
- Last updated
- 2026-07-12
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The GameCanvas boundary-collision examples only reverse sprite velocity. If a sprite overshoots a canvas edge, it can remain partly outside the canvas and repeatedly fire boundary collisions, making movement look erratic. The examples should clamp the sprite back inside the canvas and keep the bounce direction correct for the edge hit.