no view parent game? help

Non-platform specific questions.

no view parent game? help

Postby mrgame » Wed Nov 07, 2007 11:51 pm

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
mrgame
 
Posts: 118
Joined: Sun Oct 21, 2007 8:09 pm
Location: my computer
Score: 3 Give a positive score

Re: no view parent game? help

Postby Super Pieman » Thu Nov 08, 2007 3:05 am

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron