How to make a scroller game

Game Editor comments and discussion.

How to make a scroller game

Postby Sabor Boricua » Mon Aug 29, 2005 8:00 pm

I want to make a side-scroller game. I already have the background and the main sprite (helicopter)--------But, I can't seem to make the environment to scroll to the right. Is there anybody that can help me make this happen?
Sabor Boricua
 
Posts: 8
Joined: Fri Aug 19, 2005 1:16 am
Score: 0 Give a positive score

Postby willg101 » Mon Aug 29, 2005 8:01 pm

Make the player the view's parent.
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Sabor Boricua » Mon Aug 29, 2005 8:14 pm

willg101 wrote:Make the player the view's parent.


Tried that, but my goal is to make the scroller to scroll independently from the player.
Sabor Boricua
 
Posts: 8
Joined: Fri Aug 19, 2005 1:16 am
Score: 0 Give a positive score

Postby willg101 » Mon Aug 29, 2005 8:15 pm

Ummm...
Give the view the same "key down/up" actions?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby BeyondtheTech » Mon Aug 29, 2005 8:23 pm

Make the background move by setting its xvelocity. You can also make the background x-infinite as needed.

But, I agree that the view should be set to the player, if at least within a number of pixels from the player. That way, the player is always on the screen, but moving within the view.
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby Sabor Boricua » Tue Aug 30, 2005 4:58 pm

BeyondtheTech wrote:Make the background move by setting its xvelocity. You can also make the background x-infinite as needed.

But, I agree that the view should be set to the player, if at least within a number of pixels from the player. That way, the player is always on the screen, but moving within the view.


Since I'm new at the program, I don't know much about scripting. Can you give me an example or instructions on how to do it?

I tried it yesterday to no avail. But seriously, I'm in the dark here, don't know what I'm doing in terms of scripting the background to move........
Sabor Boricua
 
Posts: 8
Joined: Fri Aug 19, 2005 1:16 am
Score: 0 Give a positive score

Postby Game A Gogo » Tue Aug 30, 2005 7:11 pm

What I do Is:

I make a sprite(the size of the screen(Can be a Hud)) and on the ship make a physical respond whit the actor.

for the background In draw actor event:
Code: Select all
For up or down:yvelocity:(+=up,-=down);,For left or right: xvelocity:(+=left,-=right);


for the ship(so it can mouve):for going up in Key down event:
Code: Select all
y=y+(your number);
ect...
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest