attribute boolean when change scene
wollty
Member Posts: 102
when I put a boolean attribute to true in SCENE1 how do I bring it back to true in SCENE2?
thanks
Comments
Make it a Game Level Attribute and it will remain set from scene to scene.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Hello, @wolity I'll answer your question this way:
Something I've done using GSC practically from the word go: Actors don't have to "do anything" - so if you want anything to happen just when your scene is opening, then simply make an actor and put it outside of the screen area where users can't see it. In it's Rules, you can put whatever you like: Change Attribute yourBool to true, Interpolate Alpha to 1 (for a fee-in), etc, etc, etc.
I've "traditionally" called this actor "CODE" just to differentiate it from "working" actors.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I'm trying to make a gallery shop,
where practically choose some products (actors),
save them and go to Scene 2
the problem is that in scene2 shows (with spawn) you only the last saved
and not also the others
so I think it is a problem in the transition from one scene to another,
the Boolean attributes that does not remain
More details - more understanding of your problem...
make sure that any attributes you want saved and remembered for other scenes are game. attributes (not self. or scene. ones)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I have a gallery with 6 players
I can choose 3
or three different or if I want to also the same 3 times.
Save them and when I go in Scene 2 is just the latest choose
https://www.dropbox.com/s/3cm4bkcfo5t7xts/gallerySHOP.gameproj.zip
now try with the game level attribute
because it is effectively a passage to next level
this is the first time I try to use it (game level attribute)
thanks for the suggestion