TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Resolved Questions
→
How to add actor in a group into list?.
Pages:
1
2
How to add actor in a group into list?.
flameblue59
Posts: 113
January 05, 2015, 12:17:36 am
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
January 05, 2015, 01:07:11 am
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
January 05, 2015, 01:17:07 am
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
January 05, 2015, 01:20:01 am
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
January 05, 2015, 01:45:12 am
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
January 05, 2015, 01:46:25 am
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
January 05, 2015, 05:37:09 am
I want to generate actor from the list and called to the stage but I dunno how to do it.
sdieters
Posts: 2068
January 05, 2015, 05:43:42 am
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
January 05, 2015, 05:52:48 am
sure, that's I'm looking for.
sdieters
Posts: 2068
January 05, 2015, 06:06:13 am
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
January 05, 2015, 06:48:43 am
May i know why these blocks aren't worked?.
sdieters
Posts: 2068
January 05, 2015, 07:33:04 am
What error do you get?
http://gyazo.com/bfcb003e63b552ae1c46feef391d5cc5
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
January 05, 2015, 07:58:14 am
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
January 05, 2015, 08:09:05 am
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
January 05, 2015, 08:45:11 am
Here is. I dunno how can the list is empty while I've set it.
Pages:
1
2