scrolling problem

Game Editor comments and discussion.

scrolling problem

Postby superhydrosonic » Tue Jul 24, 2007 9:59 pm

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!
User avatar
superhydrosonic
 
Posts: 22
Joined: Wed Jul 04, 2007 9:31 pm
Score: 1 Give a positive score

Postby metal_pt » Tue Jul 24, 2007 10:03 pm

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.
]v[eta[_ - Using GE since June, 15 2007
Currently using v1.3.8 Registered
metal_pt
 
Posts: 117
Joined: Sat Jun 16, 2007 12:57 pm
Location: Sintra, Portugal
Score: 2 Give a positive score

Postby DarkParadox » Tue Jul 24, 2007 10:11 pm

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
}
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron