I am trying to create a window that is full of Sprites.
The user will have to click on the sprites. As far as I can tell, the only possible way to do this is check for a Event.MouseButtonPressed, and then loop through the objects, and determine if the click was on top of the object.
Is there a better way to do this? Ideally there would be a way to create a function for each sprite e.g. OnMouseButtonPressed for each Sprite.
Thanks for any input.
(also first post!
)