Say I have instances of waves or enemies in my game. Where enemies spawn in a location. Can I have multiply enemies spawn by doing something like:
new/mob/NPC/enemy/(locate(40 to 37,12 to 8,1))
Right now I'm using a for() loop to change the location, but I'm sure there's better way.
|
||||||||||||||||||||||||||||||||||||||||||||||
I am quite interested with your
Though if you use new in your loop it would be real real laggy.It uses more of CPU.
I don't know about your special locate thingy but reducing new usage can really help you.