TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
Books & Courses
FORUMS
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Chat
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Resolved Questions
→
Do Every X seconds problem [SOLVED]
Pages:
1
Do Every X seconds problem [SOLVED]
MacMowl
Posts: 65
January 26, 2012, 01:21:15 pm
Hello,
I can't run the 'do every X seconds' block. I want to create an actor every random seconds but it creates me a thousand actors on the same time.
I'm a bit frustrated! Have i miss something?
« Last Edit: January 27, 2012, 09:40:53 am by MacMowl »
djip123
Posts: 987
January 26, 2012, 02:00:54 pm
Try to place all the blocks under "When created"
« Last Edit: January 26, 2012, 10:43:15 pm by djip123 »
Go check out my website:
http://gamecow.net
docskull
Posts: 65
January 26, 2012, 04:13:36 pm
It's exactly what djip said, it was creating many actors cause the always block runs at each frame (many times per second) so each second it was creating many timer events that in turn created actors
MacMowl
Posts: 65
January 27, 2012, 09:40:24 am
Understood, thanks for your replies!
Pages:
1