I want to do something like this, but it's not working as expected:
Function On "Damage"
sprite -> Subtract 1 from health
System -> Create object Explosion on layer "game" at (100,100)
etc...
For each sprite -> Call function Damage
When I try to do it with a function like above it doesn't pick the correct sprites.
I can put the actions in without using a function and it works correctly.
For example, this works:
For each sprite ->
sprite -> Subtract 1 from health
System -> Create object Explosion on layer "game" at (100,100)
etc...