Dynamic Scene Background Color

stueynetstueynet TorontoMember Posts: 166
edited April 2015 in Working with GS (Mac)

Before I do this, I want to make sure there is a better way. I have a table with all my levels and each level has a set background colour ( R, G and B ). For each scene it loads a background actor that grabs the colour from the table. Sadly I also need to make the scene background use said colour for letterboxing purposes. So the only way I know how to do this is to drop an actor into every scene and use that actor's local (not prototype) sttributes to change the scene. This is because a prototype cannot access the scene's colour. Only an instance of an actor can do that. Thus create the rules in the actor, and repeat for every level.

This is not ideal (obviously) so I just want to make sure I am not missing something.

Thanks!

My Latest GS Game - Tiny Spirit
My First GS Game - Dashing Ralph

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    If you haven't added all of the scenes yet, you can unlock the actor that changes the scene background color and then copy that scene each time you need a new one. Otherwise, no, I can't think of any way to change existing scene colors without manually adding an actor and unlocking it on each scene.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • stueynetstueynet TorontoMember Posts: 166

    @tatiang said:
    If you haven't added all of the scenes yet, you can unlock the actor that changes the scene background color and then copy that scene each time you need a new one. Otherwise, no, I can't think of any way to change existing scene colors without manually adding an actor and unlocking it on each scene.

    Thanks. Thats what I thought.

    My Latest GS Game - Tiny Spirit
    My First GS Game - Dashing Ralph

Sign In or Register to comment.