Page 1 of 1

View

PostPosted: Sat Oct 18, 2008 7:59 pm
by BlarghNRawr
sound noobie, but what script do i use to make the view follow an actor on the x axis only???

(the actor is called Char_Luigi)

Re: View

PostPosted: Sat Oct 18, 2008 8:42 pm
by jimmynewguy
if Char_Luigi is in the middle of the view then on draw actor view
Code: Select all
x = Char_Luigi.x -(what ever half the view is)

and that could be an easy way or just have 2 filled region actors, viewright and viewleft
then for Char_Luigi if he collides with viewright view.x += 5; and left view.x -= 5; would be another way
#2 is more effiecient and the way i use :D

Re: View

PostPosted: Sat Oct 18, 2008 8:54 pm
by BlarghNRawr
ok thanx :D