Page 1 of 1

Screen bounces with character

PostPosted: Sat Jun 03, 2006 7:41 pm
by CrimsonX
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.

PostPosted: Sun Jun 04, 2006 5:14 am
by makslane
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

PostPosted: Sun Jun 04, 2006 5:26 am
by Fuzzy
I think you can also use pointers so the screens X points at the characters X.

PostPosted: Sun Jun 04, 2006 5:36 am
by CrimsonX
Thanks for the insight ill try it.