The Daily Click ::. Forums ::. Klik Coding Help ::. Best way for parallax scrolling in MMF2?
 

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
12th November, 2008 at 15:08:12 -

Hi guys, and yes I've read the ultimate background system object tutorial before (very helpful!)

The thing is, I've not used MMF2's layers at all yet and I've heard that this is the best way to make some cool parallax scrolling effects. Any idea on where I'd learn more about doing it this way? Or if it's the best way in MMF2?

Thanks!

 
--

"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!

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
12th November, 2008 at 16:02:05 -

In MMF2, play around with the layers X and Y coefficients in the Layer properties. Very easy way of doing parallaxing

Edit: And use the layers! I don't think I could make a game without them now

Image Edited by the Author.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
12th November, 2008 at 16:11:24 -

I found thats it's actually easier to use active picture object for parallax in Lil' pirate. Although the only reason i chose that was to load objects from a file.
I don't think using MMF2 layers specifically for parallax is the best idea. Active picture objects are more versatile and easier to organise.

 
.

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
12th November, 2008 at 16:12:20 -

Ditto. I've never bothered with parallaxing before but now i'd never go back! Layers is the way forward, i think!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Rob Rule

Rusten Crating

Registered
  22/12/2007
Points
  532
12th November, 2008 at 18:18:45 -

Can you change a layer's coefficient during runtime, so it can, say scroll from left to right, to stop?

 
It'll all blow over.

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
12th November, 2008 at 18:29:45 -

The Layer Object extension gives you additional functions, like changing the coefficients at runtime.

 
a/n

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6949

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
12th November, 2008 at 18:48:12 -

The only downside is that using many layers causes slowdown. But everybody will use HWA soon anyway so everything will be faaaaast.

 
www.hayovanreek.nl

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
12th November, 2008 at 19:40:23 -

Active picture objects are faster than layers.

 
.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
12th November, 2008 at 19:45:21 -


Originally Posted by AndyUK
Active picture objects are faster than layers.



Layers are a hell of a lot more flexible then the extremely slight performance drop might make them seem worth. Animations, multiple objects on multiple layers. It's all just a lot cleaner to work with, and make the process of designing the game, far more efficient.

 
http://www.facebook.com/truediamondgame

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
12th November, 2008 at 20:20:58 -

I haven't noticed any slowdown in my latest game that uses 5 layers,
Stactic 0,0,
game 1,1
backround .5,.5
far away backround .25,.25
sky 0,0

 
-

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
12th November, 2008 at 20:55:07 -

ArcaneTale uses over 10 layers and I haven't noticed even so much as 1fps lost.

 
http://www.facebook.com/truediamondgame

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6949

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
12th November, 2008 at 20:58:11 -

It seems to really depend on...something. I have projects using many layers without slowdown, others (Fishhead 4) are running crap since I added layers.

 
www.hayovanreek.nl

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
12th November, 2008 at 21:12:15 -

It's probably the size. I'd Imagine the impact of layers is multiplied a lot when going from 320/240 to 640/480 or greater.

 
-

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
12th November, 2008 at 21:14:02 -

My "game" had a frame size of 19,000 wide, 5 layers and photoshop gfx and there wasn't much slowdown for me.

 
n/a

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
12th November, 2008 at 21:16:03 -

Your "game" was Hardware accelerated wasn't it?

 
-
   

Post Reply



 



Advertisement

Worth A Click