How can I use different backgrounds for different scenes ?

Discussion in 'How Can I...?' started by adtn64, Oct 1, 2015.

  1. adtn64

    adtn64 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    93
    Likes Received:
    21
    I would like to know how to change backgrounds for particular scenes.
     
  2. shaunfal

    shaunfal Boxer

    Joined:
    Sep 25, 2015
    Messages:
    16
    Likes Received:
    15
    You would have to add in a separate image (the background you want) and send it to the back of the scene. Remember to set is as a decoration and have in on a layer above your original background.
     
    Last edited: Oct 1, 2015
    netkomm and Sean Buildbox like this.
  3. adtn64

    adtn64 Boxer

    Joined:
    Sep 25, 2015
    Messages:
    93
    Likes Received:
    21
    Ah yes, thanks :D
     
  4. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    When ever I try to do it, I get only one bg.
    when I delete it in the 2nd scene for example, it get's deleted from all the of the scenes
     
  5. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    @eyal the backgrounds you put in BB are global across all your scenes, so Do Not Delete any of them, because, as you have experienced, it will delete it from all scenes.

    What you need to do, is add all the images you want to use in your BB game as backgrounds and send them all to the back, so if you're using 3 x backgrounds, you could for example use;
    BG1 on scenes 1 through to 5
    BG2 on scenes 6 through to 10
    BG1 on scenes 11 through to 15

    In order to bring BG2 further forward for scenes 6 to 10 if you're on a Mac, you can hold Cmd+Right Click and BB will show you a stacking order for all layers (images) where you click on the screen. The top of the list shows the highest image (the most forward image) and the bottom of the list shows the images furthest back in the Z-axis.

    So the backgrounds in your scenes 1-5 will look like:
    BG1
    BG2
    BG3
    ~~~~~~
    The backgrounds in your scenes 6-10 will look like:
    BG2
    BG1
    BG3
    ~~~~~~
    The backgrounds in your scenes 11-15 will look like:
    BG3
    BG2
    BG1

    Of course you could also return to any of the other backgrounds in later scenes too - have fun :)
     
  6. dan_counsell

    dan_counsell Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    172
    Likes Received:
    229
    No way! I had no idea you could do this. I thought the order was global across all levels, may have to update my game now…

    Thanks for the tip @phil :)
     
  7. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    Ah ha, the downside of typing what you think is the solution, prior to actually testing it out for yourself. Sorry guys, I just tried what I typed above and you cannot order the backgrounds as I've described.

    So the only way I can see to do this, is add the others backgrounds as objects and send them to the back and set them to Decoration - No Collide - No destroy. That works okay, just bare in mind you will have to stretch/size or duplicate this 'background object' to fill larger/longer scenes. I just did this with a 2020px background and simply hit D on the keyboard to duplicate it to the right and it looks and scans great.

    Sorry for giving you guys a bum steer there - Oops!
     
    trudnai and Christoph like this.
  8. stevinz

    stevinz Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    169
    Likes Received:
    142
    @Phill Mason Haha, you had me for a second there. That was a brilliant idea, though. :)
     
    Phill Mason and Christoph like this.
  9. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    I was like "No way!", how could I miss that. LOL
     
    Phill Mason and Christoph like this.
  10. Rebel Studios

    Rebel Studios Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    466
    Likes Received:
    280
    Hahahaha.... and I was really trying to emulate what Phill was explaining... really had me there for a while :p
     
    Phill Mason and Christoph like this.
  11. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    Yeah and if you sprinkle fairy dust on the background and all the odd numbered scenes, your app will get to #1 in the charts too, forgot to mention that also :)
    Sorry guys, my bad.
     
  12. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    @Phill Mason I just started reading this thread and had a WTF moment! I was just starting to think and imagine all the rework I was going to have to do and was actually relieved in some ways that was a...cough...how should we say....overly enthusiastic statement :)
     
    Phill Mason likes this.
  13. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Is there a shortcut on Mac that can move the objects in z-axis? cmd+[ is not working in my case.
     
  14. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    It works for me. You may have to press that several times until the selected object reaches lower Z axis than the other object you care of. Have you tried "cmd+{" ("cmd+shift+[") ? That would send your object to the farthest Z axis immediately...
     
  15. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Great stuff with the scene dependent backgrounds @Phill Mason! BTW with a constant moving game style you can do parallax effect as well:
    1. Add more more of these decorations, one for each layers
    2. Add a little bit of speed to these layers so the furthest layer appears move slower then the one in the front...
     
  16. drew

    drew Boxer

    Joined:
    Sep 25, 2015
    Messages:
    68
    Likes Received:
    20
    How can I put parallax background on each level, is it possble?
     
  17. Gergis Fawzy

    Gergis Fawzy Boxer

    Joined:
    Dec 3, 2016
    Messages:
    30
    Likes Received:
    0

Share This Page