The Daily Click ::. Forums ::. Klik Coding Help ::. Parallel scrolling backgrounds.
 

Post Reply  Post Oekaki 
 

Posted By Message

Felix.S



Registered
  08/12/2004
Points
  86
29th December, 2006 at 19:26:55 -

Dear all,

I have seen many klik games featuring parallel scrolling backgrounds, I still don't understand how they managed to make the background scroll with the player while it is not an active object.

Can any master klikers can enlighten me?

Regards

Felix

 
This is my sig, ph33r

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
29th December, 2006 at 19:49:10 -

In TGF: Use an active object

In MMF: Use a background system box, change its image, and do this:

* Always
- Background system box: Set X position to (X Left Frame / 1.5)
- Background system box: Set Y position to (Y Top Frame / 1.5)

You can of course change the coefficient (1.5 in the example above) to anything you like.

In MMF2 or TGF2: Create a separate layer where you place all backgrounds and stuff, and change the scrolling coefficient. Simple.

 
n/a

Felix.S



Registered
  08/12/2004
Points
  86
29th December, 2006 at 23:24:48 -

Cheers Axel, that really sorted things out a bit.

Just another question, for some odd reasons, all the other background objects flashes or just simply disappear while scrolling. Any ideas why?

 
This is my sig, ph33r

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
29th December, 2006 at 23:38:44 -

Hmm, dunno. Can't recall that ever happening to me. Are you using MMF2?

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
29th December, 2006 at 23:42:19 -

It happens in earlier versions of MMF1/1.5, I think, but otherwise I'm not sure what could be going on.

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

Bibin

At least 9001

Registered
  01/07/2005
Points
  308

Silver Cup WinnerGOTW Winner!Has Donated, Thank You!VIP Member
30th December, 2006 at 00:46:50 -

The correct term is actually "Paralax" Background.

What Axel said should work, so I do not see why it didn't work. Could you perhaps send the file of the non-working paralax scrolling.. thing... that you were working on?

 
n/a

Felix.S



Registered
  08/12/2004
Points
  86
30th December, 2006 at 01:49:56 -

1. It was built with mmf 1.5

http://www.geocities.com/rsth33f/test..zip

File if you want it.


remember ^

1. rename the zip part to cca, geoshi-- doesn't like cca files.

-Regards

 
This is my sig, ph33r

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  50116

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
30th December, 2006 at 06:44:47 -

Beautiful article written by a wonderful klikker:

http://www.create-games.com/article.asp?id=1255



 
n/a

Werbad



Registered
  18/09/2002
Points
  235
30th December, 2006 at 06:46:10 -

Why didn't you just zip the file? Saves space as well...

That file works just fine for me, and you can remove the borders from the System Box by giving them the color "None"

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
30th December, 2006 at 06:56:24 -

The correct term is actually "Paralax" Background.

Or 'parallax' perhaps.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
30th December, 2006 at 07:57:07 -

Hahaha

 
n/a
   

Post Reply



 



Advertisement

Worth A Click