How would I add actors to a list?

undefeatedgames

  • Posts: 121
So I can use a script to display a random actor from a list?

rob1221

  • *
  • Posts: 9473
The list blocks are under Attributes > Lists.  To get a random actor from that list, use the "random number between __ and __" block with the "get item # __ from __" block.

Tuo

  • *
  • Posts: 2469
To add an actor to the list, you will need to use the "add _ to list _" block with the "actortype" block in the Actor->Properties palette (unless you really mean "actor", which would be in the Scene->Actors palette).
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)