Placing consistent elements across multiple scenes

jiffwjiffw Member Posts: 42
edited May 2012 in Working with GS (Mac)
If I have multiple scenes but across each scene there will be consistent elements such as sound on/off, score etc. What's the best way of achieving this without having to manually add to each scene?

Best Answer

  • JustMe74JustMe74 Posts: 542
    Accepted Answer
    I don't, because there are a few levels where I actually do move the buttons & timer.

Answers

  • JustMe74JustMe74 Member, PRO Posts: 542
    Sound and score are easy. Just store them in an Attribute (boolean for sound on, integer for score). Variables are global in GS, so it will carry over from scene to scene. For score, you'll also want to create an Actor that you drop into the scene. You shouldn't have to change the prototype, but you will have to manually drop it where you want it in the scene.

    One thing I'm doing for my Penguin game is this -- I have a scene called "Building Blocks" that contains common scene elements (a number of ice blocks, the player actor, the time clock, reset button, etc.) I simply copy that each time I'm creating a new level so I don't have to find and drop the actors every time. Some elements rarely move (pause, reset, and time clock actors) so this makes it consistent on each level.
  • jiffwjiffw Member Posts: 42
    Thanks. So in terms of ensuring the postion of the actors is the same across the scene, do you store the position as an atribute too?
Sign In or Register to comment.