I want when my character hits any box, the box will be removed and a coin will be released instead. But when the character hits several boxes, only one coin comes out. what is the reason?
Does Gdevelop have a command like “for” that can be used?
Just so you understand
You hit enemy
For just hitting enemy you get 5 points
But if you hit two enemies at the same time condition is already returned true
You are in collision with enemy so you get 5 points not 10
YOu need to use for each object event
And with it if you will get 5 points for each enemy even if you hit multiple ones at the same time