I was wondering about somthing. I am making a 2d side scroller game, that plays it from the top view. Now i am more used to 3d coding, so i am not so sure about this one. I want to make it so the camera centers on the player, and moves with him, keeping him centered on the screen, but allowing him to move to the areas on the map that arent shown on screen.
I was wondering, since their seems to be no real camera with 2d games, is this possible?
It did occur to me to make it so the player doesnt move, he just moves the background, all the enemies, and all other images. If there is not way, then i will just do this, i guess i am just posting this to see if that would be the most effective way.
If anyone knows a better way, please feel free to post it.
( and on a side note, could chroma please post the bare necesities to that code he gave me in the bullet direction thread, there was an error when i tried to run it.)
Thanks.
-Kevin
I was wondering, since their seems to be no real camera with 2d games, is this possible?
It did occur to me to make it so the player doesnt move, he just moves the background, all the enemies, and all other images. If there is not way, then i will just do this, i guess i am just posting this to see if that would be the most effective way.
If anyone knows a better way, please feel free to post it.
( and on a side note, could chroma please post the bare necesities to that code he gave me in the bullet direction thread, there was an error when i tried to run it.)
Thanks.
-Kevin