Quest Question

the boolean name is more fitting to be “if not interacted”

when creating the sprite, define the boolean as true
Then when calling this section of the code, switch it to false so that in the next gametick when the overlap block is called again, it doesn’t run the proceeding code again and again since the if statement only runs if the boolean is true.

you ould also just do the opposite with not blocks (if not interacted, then run etc and keep the og name)

OR just use this block:

from this extension: https://github.com/riknoll/arcade-sprite-events
forum link on how to use the blocks : Arcade-sprite-events extension

2 Likes