Scrolling view a la 1945 demo.

Game Editor comments and discussion.

Scrolling view a la 1945 demo.

Postby Mardi-Gras » Sat Apr 15, 2006 7:11 pm

I've been looking at the code to Jazz-e-Bob's excellent 1945 demo, and i cannot for the life of me figure out how the view is operating. The view in this demo moves the player object ever forwards vertically through the level - a fantastic effect I'd love to replicate on the horizontal axis... but i'm too fuddle-minded to decipher the code that is in front of me. :oops:

If anyone could explain to me the logic behind how this moving view operates, I'd be grateful.

Many thanks in advance.
User avatar
Mardi-Gras
 
Posts: 57
Joined: Sun Jan 22, 2006 10:10 pm
Location: Glenrothes, Scotland
Score: 0 Give a positive score

Postby Game A Gogo » Sat Apr 15, 2006 10:32 pm

me for my side shooter scrolling game, i make everything else move and not the view neither the player.
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

Postby Mardi-Gras » Sat Apr 15, 2006 10:55 pm

Ah... and suddenly, it all makes sense. :D

Thanks for the response, Gogo. As always, most very helpful.
User avatar
Mardi-Gras
 
Posts: 57
Joined: Sun Jan 22, 2006 10:10 pm
Location: Glenrothes, Scotland
Score: 0 Give a positive score

Postby Game A Gogo » Sat Apr 15, 2006 11:01 pm

No problem.

I like being of any help.
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

Postby DilloDude » Tue Apr 25, 2006 2:04 am

Or in some cases, it is better to set view.yvelocity (or xvelocity) to a number. You might want wire-frame rgions to stop your player going off the screen.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest