Actors and Lists

JeffreyDriver

  • Posts: 2071
Actors and lists have always caused me issues. So much so, that I've always given up, but I really need to crack this.

Here's the problem broken down.

  • I have two types of actors (an unknown number of each)
  • All these need to be added to a list
  • I then need to select a random actor from that list

My main issue is adding the actors to a list in a way that I can refer to that specific actor later. Everything I've tried has caused the game to freeze.

Or is there a better way to select a random actor on screen?

Thanks in advance.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

LIBERADO

  • *
  • Posts: 2647
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

JeffreyDriver

  • Posts: 2071
Thanks Liberado. That's pretty much exactly what I tried, but the game was freezing when adding actors to the list. The only difference is that I was using for each actor of type.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

LIBERADO

  • *
  • Posts: 2647
When I use "for each actor of type", it works fine too.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

JeffreyDriver

  • Posts: 2071
Okay, something else must be going on then.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk