Page 1 of 1

no view parent game? help

PostPosted: Wed Nov 07, 2007 11:51 pm
by mrgame
i wanted it so the player walks around, eg hes not the child of view.
but when you walk of the view i want view to then want view to move
either as u go off view moves with you,

or even better view jumps like a hole view square infront of ya so its like you are entering a different section

Re: no view parent game? help

PostPosted: Thu Nov 08, 2007 3:05 am
by Super Pieman
If you want the view to follow you as you get to the edge of the screen then here is what you do.

Add Actor
Make it a wire-fram actor and name it stop_right.
For your character add a collision event for when you collide with stop_right and choose script editor.
Put in this code:
Code: Select all
view.x=view.x+5;
5 can be changed to whatever the speed of your character is


Do the same for the left side. If you have any questions ask.