This site requires JavaScript, please enable it in your browser!
Greenfoot back
craigd04
craigd04 wrote ...

2014/3/27

Creating a camera that follows the player

craigd04 craigd04

2014/3/27

#
Hey, I was wanting to create a camera that would limit the player to a 1080 by 720 screen but the map would be like 10000 by 10000 or something. So when the player moves the car it moves the camera too. I've honestly no idea how this would work can anyone give us some help? I figured i could just set the size of the world by 10000 x 10000 and then create a method in the level class that would set the players screen size.
JetLennit JetLennit

2014/3/27

#
Just go here and look around in the code of some of the scenarios
You need to login to post a reply.