
we all use views right? i'm tired to watch how the camera suddenly stops when link doesn't moves, and wait for link reach the bottom or top of the room so the view start following link. so whit this script all that will be solved.
-Smooths the view when this stops.
-Follow link in the x an y coordenates that we want
-is simple!
How to make it work:
-Make a view of any size(i'm using 304x240) that follows link object
-Add a Step Begin event on your link object
-Add this code to it:
view_xview[0]=(view_xview[0]*4+(x-152))/5//can X change coordenates to fit your game
view_yview[0]=(view_yview[0]*4+(y-120))/5//can Y change coordenates to fit your game
-Done
Now chek how the camera moves, is nice hu?
well you also can do the view(in this case 0) not follow any object because that script acts as a view but link will be always in the center, and if you go to the top,bottom,left o right of the room it will still be on ceter so you can see the background color(if you are using tiles, or bg, doesnt matter, you will see it anyways!)
Litium04