Backgrounds

I am currently trying to make a game like dolphin olympics 2, and one of the main parts is the background because the dolphin flies different heights. Instead of having to tile the backgrounds, is there a way that I can have the background stay permanently behind the dolphin, but the dolphin still be able to move within the 50,000 by 50,000 sized scene?

You can see the game I am talking about at www.rawkins.com/games/do2/

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Just uncheck (turn off) Scrollable for background layer, and put your hero, and all actors you want to move on a different, Scrollable layer.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    @MinBlownApps Hi, not certain what you mean (and I can't check out your example as the link's not working for me for some reason... I just get a blank screen); but if you mean the dolphin actor stays roughly in the centre of the screen and the back moves to simulate the dolphin moving, but being tracked as it were, then put a Control Camera behaviour in the Dolphin actor. Hope that solves it for you.

    Edit: beaten by @TheMoonwalls ! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    @gyroscope gave you another idea, just mix David's, and my suggestions, and you'll get what you want :)
  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92
    edited December 2012
    I have tried your suggestion, but the dolphin does not move
  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92
    edited December 2012
    Correction:he cannot move past 2/3 of the screen up or to the right. He can move left and down ok because he hits the walls.

    It is almost like he is locked into a mini box on the screen.

    Edit: The problem only happens if the background is not scrollable
  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92
    edited December 2012
    @gyroscope If I send you the game file, can you help me find out why I am having movement problems?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited December 2012

    OK, I'll check it out for you. Send to contact [at] davidgriffinapps [dot] co [dot] uk and I'll see if I can fix the gamefile.

    But before you do that, try the following first to see if it can get fixed... so presumably you want your dolphin actor to stay in the middle of the screen and for the background to move, giving the impression that the dolphin is moving but being tracked by a camera....this is the "traditional" way anyway, and has been used in games for a long while... (and used in the example you gave).

    So providing your background is set to scrollable, as @TheMoonwalls suggested; and you put the Control Camera in the dolphin actor as I suggested; and your left, right, up and/or down controls affect the background, then you should be good to go.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92

    OK, I'll check it out for you. Send to contact [at] davidgriffinapps [dot] co [dot] uk and I'll see if I can fix the gamefile.

    But before you do that, try the following first to see if it can get fixed... so presumably you want your dolphin actor to stay in the middle of the screen and for the background to move, giving the impression that the dolphin is moving but being tracked by a camera....this is the "traditional" way anyway, and has been used in games for a long while... (and used in the example you gave).

    So providing your background is set to scrollable, as @TheMoonwalls suggested; and you put the Control Camera in the dolphin actor as I suggested; and your left, right, up and/or down controls affect the background, then you should be good to go.
    I never thought about Having the background move, let me see if it works fine.
Sign In or Register to comment.