need your help - background cant keep up with character

Discussion in 'How Can I...?' started by simonsaunders, Feb 21, 2016.

  1. simonsaunders

    simonsaunders Boxer

    Joined:
    Feb 17, 2016
    Messages:
    39
    Likes Received:
    2
    making a motorcross game like in treys example https://www.buildbox.com/tutorials/

    followed it point bypoint but my character on wheels is always off the screen to the right and not in the middle of the screen. banging my head against the wall to work out why. see image below. anyone any ideas?

    [​IMG]
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    adjust your game frame


    Screen Shot 2016-02-21 at 12.03.17 PM.png
     
  3. simonsaunders

    simonsaunders Boxer

    Joined:
    Feb 17, 2016
    Messages:
    39
    Likes Received:
    2
    yep - done that, made no differeance, have a pass on the right and rest are blocked.. must be something super simple

     
  4. JustWatchApps

    JustWatchApps Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    315
    Likes Received:
    145
    @simonsaunders If you character can outrun your game speed - and you have a pass in your game frame, then (unless i'm missing something) your character can run off the screen. So you can make it so he is blocked (instead of pass), or adjust speeds. Hope this helps.
     
  5. simonsaunders

    simonsaunders Boxer

    Joined:
    Feb 17, 2016
    Messages:
    39
    Likes Received:
    2
    here is a video ofthe problem http://screencast.com/t/kECp4GIb5cE5

    all i want is the character to stay in the middle of the screen.

    game has to have a pass on the right to get through. bg scrolls. but character out runs the speed of the bg. i just copied treys example in the video. see

    Watch Video

    Creating A Physics Game

    so what i end up with all scenes is the character focus is hard right, when it should be in the middle, regardless of speed.

     
  6. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    you don't want pass you want block and you want to bring it to about the middle of the screen... have you tried this?
     
  7. simonsaunders

    simonsaunders Boxer

    Joined:
    Feb 17, 2016
    Messages:
    39
    Likes Received:
    2
    i kept it to pass and moved it to the middle of the screen and it worked. thanks @heathclose!!!

     
    heathclose likes this.

Share This Page