I have a silly problem. create an enemy object that when created waits a random time to start shooting. The problem arises when I add several instances of it in the layout when the game starts all the instances fire at the same time. How do I get everyone to have an individual ramdom? thanks
Develop games in your browser. Powerful, performant & highly capable.
Easy - use Timer behavior. When an enemy is created, start a timer with random time for it. On timer event, enable shooting for this enemy instance.
Try not to use "Wait" action when programming enemy AI.