The Daily Click ::. Forums ::. Klik Coding Help ::. Contra style one way scrolling
 

Post Reply  Post Oekaki 
 

Posted By Message

machrider



Registered
  25/06/2006
Points
  121
1st January, 2007 at 20:43:56 -

I'm able to get horizontal scrolling only to work fine by telling MMF to follow the X coordinate of the player. But that's not what I want. I don't want the player to be able to scroll backwards. I only want the screen to scroll forward in one direction like in Contra or Metal Slug. Does anyone know how to do this? I can't seem to figure it out.

Image Edited by the Author.

 
n/a

Deleted User
1st January, 2007 at 20:58:14 -

If you for example only want the level to scroll to the right, these events should work;
* If Players X position is greater than "X Left Playfield + (the width of the window / 2)"
- Then center the screen on the X position of the player

 

machrider



Registered
  25/06/2006
Points
  121
1st January, 2007 at 21:22:28 -

Hmm.. I tried that and it still allows me to scroll backwards. I can't get it to scroll forward only like I want it to.

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
1st January, 2007 at 21:32:11 -

*If Pos X > Value A
-Set Value A = Pos X
-Set Scrolling X = Pos X

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
1st January, 2007 at 21:32:16 -

*If Pos X > Value A
-Set Value A = Pos X
-Set Scrolling X = Pos X

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

machrider



Registered
  25/06/2006
Points
  121
1st January, 2007 at 21:36:56 -

That does the same thing, it scroll both ways.

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
1st January, 2007 at 21:52:16 -

Both those should work. You must have some other scrolling event interfering with it.

 
http://www.davidn.co.nr - Games, music, living in America

machrider



Registered
  25/06/2006
Points
  121
2nd January, 2007 at 00:03:25 -

Negative. It can't find anything interfering. Maybe I'm doing something else wrong. Could someone possibly make an example .cca (or whatever) for me to look at?

 
n/a

Glugmoor



Registered
  31/12/2006
Points
  4
2nd January, 2007 at 01:49:36 -

I have an engine that does what I think you need. I'll mail it to you if you're interested.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd January, 2007 at 21:38:20 -

Do you have a 'Centre window position' event?

 
.
   

Post Reply



 



Advertisement

Worth A Click