The Daily Click ::. Forums ::. Klik Coding Help ::. Ikari Warriors-style vertical screen scrolling?
 

Post Reply  Post Oekaki 
 

Posted By Message

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd November, 2009 at 16:10:56 -

Just curious, but what would be the best way to make a game scroll upwards whenever you move upwards, but be "locked" whenever you go downwards. So imagine a big vertical frame where you only see a little part of it and the camera allows for scrolling only when you move upwards and nothing else.

I'm not talking an engine akin to 1942, Tiger-Heli, or even NES Commando where the plane / helicopter / guy is always moving upwards so I don't need it to constantly scroll up.

Any ideas?

EDIT: I guess this would also be the same thing as NES Super Mario Brother's only scroll to the right but locked to the left thing. Turned on its side of course!

Edited by Del Duio

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Zode



Registered
  13/04/2009
Points
  239

PS3 Owner
23rd November, 2009 at 17:18:15 -

make active object and make it invisible then rename it to "CAM"
then go to events :
always >
> set position X of "CAM" to "player"
> set center window position in frame to x position of "CAM"
compare two global values:
Y position of "CAM" is lower than y position of "player" >
> set position Y of "CAM" to "player"

tada, it scrolls horizontaly but its locked when you are trying to move downwards.
hope this helped you ;p

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd November, 2009 at 18:58:24 -

GEEEENIUS!

Thanks buddy! I already do have an active called "Camera" but nothing to lock it out in a given direction. Should be easy to add.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!
   

Post Reply



 



Advertisement

Worth A Click