Stop Camera Moving At The End Of The Scene Length

Discussion in 'How Can I...?' started by pochat, Dec 3, 2016.

  1. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    Hi All,

    I am creating a game like frogger. (Vertical scroller)

    Quick question.
    I have 3 scenes in my world, and the game frame has been reduced to follow my character as it moves up and down. Once I reach the top of my third scene, I made it that my character hits an object that is a wall so it can't keep on moving upwards, so it stops nicely. However, as I keep on pressing the up arrow on my keyboard the camera keeps on going up making my entire scene to be off-screen.

    Does anybody know how do I stop the camera from moving?

    Thanks for your time!
    :)
     
  2. blackswan

    blackswan Avid Boxer

    Joined:
    Nov 14, 2015
    Messages:
    109
    Likes Received:
    45
    I ran into this issue with one of my projects it drove me crazy but it was a really easy fix. - https://www.buildbox.com/forum/inde...ter-from-going-out-of-bounds.7343/#post-38709
     
  3. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    Hi Blackswan,

    Thanks for taking the time to help me.

    I have tried your solution but it didn't work, it might be because I have a different problem. I made a video that explains it here, do you mind taking a look?





    :)
     
  4. blackswan

    blackswan Avid Boxer

    Joined:
    Nov 14, 2015
    Messages:
    109
    Likes Received:
    45
    Hmm that looks like the same issue I had (I don't have BB at the moment so I can't double check). In video at 1:09 you show your game frame. The left and right sides of the game frame are yellow, this means the boundaries are active but your top and bottom borders are grey this means there is no boundary hence why your camera is able to move out of the scene. Just click the grey borders on the top and bottom they should turn yellow.
     
  5. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    Upload your file to look at it
     
  6. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
  7. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    [​IMG]
    Mario test 2.bbdoc
    This file is uploading... still uploading, i cant download it
     
    wgoodpaster likes this.
  8. khalid

    khalid Avid Boxer

    Joined:
    Feb 17, 2016
    Messages:
    343
    Likes Received:
    67
    Add an action with action type "gameplay" set all "game speeds" max/min to zero ,"max speed" x/y to zero and "time wrap" to zero. Then set the action duration to the seconds you want to freeze character and place it over the object
     
  9. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I think because u don't use gravity , and use joystick .
    If you use Advanced move with `Swipe` or Buttons Control its work fine , its stop ....
     
  10. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    Ok Ok! thanks for the tip, I'll try that now... :)
     
    wgoodpaster likes this.

Share This Page