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/
You can see the game I am talking about at www.rawkins.com/games/do2/
Comments
@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
http://dolphinolympics2.org/play-dolphin-olympics-2/
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
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