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
→
Create only ONE Actor (not like in update event)
Pages:
1
Create only ONE Actor (not like in update event)
wolf2013
Posts: 70
December 21, 2015, 09:18:28 am
Hi,
i have a SCORE attrribute and I need to create an actor when the score reaches e.g <if SCORE = 200> create Actor.
When i put the code in UPDATE EVENT it creates unlimited actors and when in CREATED EVENT not working because SCORE = 0
is there any IF event for attribute ?
yoplalala
Posts: 1632
December 21, 2015, 09:29:48 am
you put a boolean inside the update event.
You can also try add events / attributes / equality
wolf2013
Posts: 70
December 21, 2015, 10:46:17 am
Quote from: yoplalala on December 21, 2015, 09:29:48 am
you put a boolean inside the update event.
You can also try add events / attributes / equality
How do you mean "put a boolean inside the update event." ?
t4u
Posts: 418
December 21, 2015, 03:46:16 pm
on update
if (my_bool){
my_bool=false;
create actor;}
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.
Tutorials + downloads:
http://t4upl.blogspot.com/
Pages:
1