How can i set events to receive this:
when Sprite with name String 'Player' have collision with sprite with name String 'Enemy' do something?
i use one sprite but difference is Variable string with different names
-Player
-Enemy
Develop games in your browser. Powerful, performant & highly capable.
Add the sprite to a family. Move the variable to family level.
Then you could use "Sprite on collision with Family" event.