Screen bounces with character

Non-platform specific questions.

Screen bounces with character

Postby CrimsonX » Sat Jun 03, 2006 7:41 pm

My view follows my hero. Since my character stand is moving up and down.

Is there anyway it can make him the view but not have the screen bouncing.
CrimsonX
 
Posts: 28
Joined: Wed May 24, 2006 2:38 am
Score: 0 Give a positive score

Postby makslane » Sun Jun 04, 2006 5:14 am

You can try something like this, in the 'Draw Actor' event of your actor:

Code: Select all
if(xscreen > view.width - 40) view.x = view.x + 5;
else if(xscreen < 40) view.x = view.x - 5;


Without parent the view in your actor
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Fuzzy » Sun Jun 04, 2006 5:26 am

I think you can also use pointers so the screens X points at the characters X.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby CrimsonX » Sun Jun 04, 2006 5:36 am

Thanks for the insight ill try it.
CrimsonX
 
Posts: 28
Joined: Wed May 24, 2006 2:38 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest