what i do for stop spawn mosnter after 5 monster for example???
i have look in every forum but no have idea...
i have a tree.. he spawn infinite enemy... for let spawn just 5 ?? or 20?? what i do?
You can have an instance variable on the tree that adds 1 when you spawn a monster and when tree.variable=5, you stop the tree from spawning by using 'if variable less than 5' as a condition.
Develop games in your browser. Powerful, performant & highly capable.
can you post a image please?? i no think have understund so good
after i say.. variable is = to 5 where i can stop a spawn..
ok solved this is way:
frist add istance variable "treespawn"
system, every 3 second add 1 to treespawn
sub event
tree "compare istance variable" <5 tree spawn another object
correct