01-19-2024, 02:40 PM
Quote:I noticed that when you create a bullet, you useĀ Father_getId to store the enemy sprite in the bullet. In a game there would probably be multiple enemies that appear and disappear constantly. In that case you would need a function similar to Father_getId that returns a list (an array) with all active sprites that use the specified id, and you would need to call it in the bullet's update function.
Can you show me what the code would be like, I can't get it to work.