need help with control camera
I'm trying to make a game where the player stays in the middle but can walk.
I also want to scene to be infinite.
so I want to make something where the player stays in the middle but when you press <- you move to the left but also stays in the middle (background moves to ->)
I also want to scene to be infinite.
so I want to make something where the player stays in the middle but when you press <- you move to the left but also stays in the middle (background moves to ->)
Comments
It sound like you are trying to create an endless runner.
There is a demo here you might learn from
http://www.deepblueapps.com/gs-taptap-runner/ although it costs 1,30$
But i think you can swing that
Move actor
because now the player does move but I want the player to stay in the middle
http://www.spelert.nl/denk/Ontsnappen/Fiets-Ontsnapping/
but I still dont know how to keep the player in the middle of the screen.
Use the arrow keys to move the white block around.
I have a little camera control tutorial at my site that covers this same subject:
http://www.jamie-cross.net/?portfolio=gamesalad-recipe-005-making-your-platform-game-level-scroll-camera-scrolling
It's in the context of a platform game, but the camera adjustment concepts are the same regardless of game type.
Instead of moving your player, like I did, you'd need to move all your other elements, background, enemies, obstacles, etc. and spawn them as they are too appear on screen. This is how a lot of endless runners work.