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
→
Transition between 2 frames of an actor - how to make the game remember
Pages:
1
Transition between 2 frames of an actor - how to make the game remember
jimm84
Posts: 31
August 24, 2016, 08:01:03 am
Hello!
What would be the best approach for making a animation remember that it has played from when you transition between 2 scenes? For example - the player has opened a chest in Scene 1 and (chest goes to frame 2 of actor), the player goes through to scene 2, and the comes back to Scene 1, the chest is still open . Is this result easy to achieve?
Thanks! :-)
Bombini
Posts: 1401
August 24, 2016, 08:02:46 am
Hi,
again use game attributes.
Either a list or just "chest" true/false.
Cheers!
jimm84
Posts: 31
August 24, 2016, 08:52:02 am
Makes sense, I will have a tinker with the Boolean method. I'm trying to get my head around attributes and attaching them to things.
Bombini
Posts: 1401
August 24, 2016, 11:30:47 pm
Try to think ahead a bit.
How many chests do you have for example?
A lot?
Why not create a list (game atrribute) and say position 0 is chest 0, 1 is chest 1, 2 is chest 2, ....
Value for each position if 0 = closed, 1 = opened.
Cheers!
Pages:
1