How to add actor in a group into list?.

flameblue59

  • Posts: 113
Hi, is there anyone know how to set actor name to a list?.

 For example :

I have 4 actors in group A and I want to add them to a list within placing them on the screen, So if the player click a button, they will be generated to the stage.

Please check my block, my block only work while the actor is on the Screen, but if I delete them from the screen. It won't add to the list. Thanks

sdieters

  • Posts: 2068
the member of group blocks refers to ALL "Busana" actors in the scene. So if you don't have any actors of that type in your scene, nothing will be added to the list.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
so, how can I call actor base on the name which is not on the screen.

for example it do looping for 4 actor. So actor1, actor2, actor3, actor4 will be generated to the stage. Do you have any suggestion regarding the using block?.

sdieters

  • Posts: 2068
You can add the actor after it has been created.
Something like this:

*whenever you create your "Busana"*
Create [Busana] at x and y
add last created actor to [baju]

Good luck!
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
Anyway, the block create is only for actor. Should I add them one by one?. I'm thinking about adding one block but it can load all of actor in a group.

sdieters

  • Posts: 2068
I don't get the problem?
You want to add the actors that are generated during the game to a list or?
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
I want to generate actor from the list and called to the stage but I dunno how to do it.

sdieters

  • Posts: 2068
Ahhh. You want to create a list with different actors and you want to pick an actor from that list and place it in the scene?
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
sure, that's I'm looking for.

sdieters

  • Posts: 2068
This is what you have to do:
A) create a regular list, and add the names of your actors ( this is Capital sensitive ) as text.
B) then whenever you want to create an actor from that list, simply use this combination to call an exact actor you want
http://gyazo.com/5372b0fb4b47f747c946c6a512160373
C) if you want to create a random actor from that list, do it like this
http://gyazo.com/de398c2dc6a2acc0745217588ad74601

Good luck!
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
May i know why these blocks aren't worked?.

sdieters

  • Posts: 2068
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
It doesn't create anything in the stage. The list is empty but I've filled it, how it can be empty.

sdieters

  • Posts: 2068
I cant look into your pc. show us some screen shots
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

flameblue59

  • Posts: 113
Here is. I dunno how can the list is empty while I've set it.