Page 1 of 1

Scrolling view a la 1945 demo.

PostPosted: Sat Apr 15, 2006 7:11 pm
by Mardi-Gras
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.

PostPosted: Sat Apr 15, 2006 10:32 pm
by Game A Gogo
me for my side shooter scrolling game, i make everything else move and not the view neither the player.

PostPosted: Sat Apr 15, 2006 10:55 pm
by Mardi-Gras
Ah... and suddenly, it all makes sense. :D

Thanks for the response, Gogo. As always, most very helpful.

PostPosted: Sat Apr 15, 2006 11:01 pm
by Game A Gogo
No problem.

I like being of any help.

PostPosted: Tue Apr 25, 2006 2:04 am
by DilloDude
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.