view moving by itself

Talk about making games.

view moving by itself

Postby The achievement » Tue Apr 04, 2006 7:16 pm

hi guys, i am making a game that is a side scroller, how do i make the view just keep on moving?

Do i just do xvelocity=1?

Or can i just do x=1?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby frodo » Tue Apr 04, 2006 7:21 pm

to go right:
creat actor:
xvvelocity=+1;

to go left:
create actor:

xvelocity=-1;
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby DilloDude » Tue Apr 04, 2006 11:31 pm

If you want it to stop moving (eg at the end of the level) use a wire-frame region at the end for it to collide with (xvelocity=0). If you want its yvelocity to change as well, you could just use paths. You probably want wire-frame regions around the view to stop your player walking out of it.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest