I have a game that will have different entities interact on sight of the player. When I have one instance of the object in a level, it works fine, but with 2 or more they don't work as intended.
This is the functionality:
When the entity sees you, it opens up and fires.
When there's more then one of the rocket, sometimes the rockets won't retract once they can't see the player, or they won't open up at all when seeing the player.
The trigger once is the problem, remove that. To stop the animation from looping you can move it to a separate event : 'is open' check and add a trigger once, or set the animation to not loop or repeat.
The trigger once on a different event doesn't work, though
Develop games in your browser. Powerful, performant & highly capable.
Yeah remove the trigger once, then move the animation logic elsewhere as it will loop the anims.
I don't want the animations to loop, but I got a different idea. Thank you for helping!