Hi all!
I was used to do games with flash, using AS2. Then I leaved it for a while, and now I have started doing games again, and I am trying Corona.
Programming with AS2 I was able to create multiple instances of an enemy doing something like this (I don’t remember of this is actually correct, but i hope you understand what I mean):
for (1=0, 1<10, i++)
{
_root[“enemy”+i] = newInstanceOf(enemy);
}
How should I handle to make the same with Corona?
I was checking the forums but I was not able to find any help.
I want to spawn 10 enemies in the stage, and then I will use another “for” to check and change their positions along the time.
Maybe there is another way to do this with Corona and what I am trying is just stupid. So, any hint from you will be welcome.
Thanks! [import]uid: 140715 topic_id: 27110 reply_id: 327110[/import]
[import]uid: 52491 topic_id: 27110 reply_id: 110094[/import]