[SOLVED] How do I change the object that a camera follows?

1

1nkFa1c0n

Guest
This is just a question since I can't figure out how to do it anywhere else. So for a game I want the camera to zoom in on another object, but I can't figure out how to do it.

Thanks in advance!
 
P

Pyxus

Guest
depends, if you're using gamemaker's follow target its just camera_set_view_target. If you're updating the camera's position yourself, which considering the nature of your question I guess not, you just set the x and y to the object's x and y.
 
1

1nkFa1c0n

Guest
depends, if you're using gamemaker's follow target its just camera_set_view_target. If you're updating the camera's position yourself, which considering the nature of your question I guess not, you just set the x and y to the object's x and y.
Thanks!
 
Top