Page 1 of 1

scrolling problem

PostPosted: Tue Jul 24, 2007 9:59 pm
by superhydrosonic
well i'm making a fighting game that scrolls but when I move off the screen it doesn't scroll!

Example:
Fighter walks to a part of the arena then when he gets there he walks off the screen! Could anyone help me?

also How do you make levels like when you kill someone you move on!


The last and not least my last question!
When I download the demos and extract them when I try using them a message come up saying something not apearred or something like that!

PostPosted: Tue Jul 24, 2007 10:03 pm
by metal_pt
Well, if you use in the draw actor event something like

view.x=x+view.width/2;
view.y=y+view.height/2;

Hopefully the main actor will always be centered in the view.

PostPosted: Tue Jul 24, 2007 10:11 pm
by DarkParadox
make a wire frame actor make it very skinny call it move
make a varible call it scroll
on create actor of your player put

Code: Select all
scroll=0;

and if all enemys are dead put

Code: Select all
scroll=1;


on collision with move put
Code: Select all
if(scroll==1)
{
   //put were you want the veiw to move
}