There are many ways to do this, the simplest being to parent the actor to the view. This will lock the player in the center of the screen(or wherever he is relative to the view.)
If you want the view to follow the player with some wiggle room you will need some coding.
There are other ways to do this, but I will do a simple way.
1.) Create 4 wire frame actors named moveview up down left and right, and parent them to the player.
2) To make this really simple you can set up a collision event for each one, and for each one write the code to move the screen.
- Code: Select all
//for the right
view.x+=10;
//for the left
view.x-=10;
// for up
view.y-=10;
// and down
view.y+=10;
You must position the frames to be a square with open corners like this
Hope this helps