Quest Question

I wanted to ask that How do I make a sprite interact with another sprite without repeating the interaction.
I have used the sprite data extension, But I don’t understand weather the boolean value is true or false? (I have set the "has Interacted " boolean to false)


please help me!!

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