Page 1 of 1

Different View Follow?

PostPosted: Sun Aug 20, 2006 9:11 pm
by Hedfone
can i make the view follow my actor only on the 'x' axis?
I know i can do this using the CenterView actor but i don't really want to if there's another way.

PostPosted: Mon Aug 21, 2006 3:03 am
by DilloDude
Try
Code: Select all
view.x = player.x - (view.width / 2);

This will keep the view centered on the player, but only on the x axis.

PostPosted: Mon Aug 21, 2006 3:47 pm
by Hedfone
should I use this on a Create Actor event or a Draw Actor event?

PostPosted: Thu Aug 24, 2006 4:15 am
by DilloDude
draw actor