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
→
use this background if
Pages:
1
use this background if
readerboy7
Posts: 59
September 23, 2011, 02:25:40 pm
i want to make a behavior where a certain backround is used if a button is pressed.
i have this so far:
behavior one: if mouse was pressed on self send 1 to behavior background
behavior two: if mouse was pressed on self send 2 to behavior background
background: if this hears 1
if this hears 2
Alexin
Posts: 3127
September 23, 2011, 03:03:38 pm
AFAIK, you can't add/remove Backgrounds at runtime.
"Find the fun"
alexin@stencyl.com
Legendary Hoamaru
Posts: 1088
September 23, 2011, 05:28:27 pm
It's possible, just have to use code. Forget the exact way atm.
Mike
Twitter
readerboy7
Posts: 59
September 23, 2011, 08:06:14 pm
i guess i could just make one scene for each actor.
one more question: set direction of background to direction of self plus or minus 180,
set speed of background to speed of self.
how is that done?
Pages:
1