The Daily Click ::. Forums ::. Klik Coding Help ::. Is there an efficient way to have black overlays for levels?
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
2nd January, 2009 at 21:40:22 -

I want it to be something like this, see how when the little green guy walks into the other room it isolates it and covers the outside with black.
Image

I did this on another project of mine but I used actives and made them invisible and reappear when I needed them. However for this project I want it to run really smoothly on older computers(not too old though)

I can think of one way but it involves making every tile an active, and I don't know if that is gonna work well.

So is there some way of doing this or is it a pipe dream?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
2nd January, 2009 at 21:44:28 -

Well couldn't you always have each room in a different layer?
Then when you walk into that room set the main character to the layer the room is on, and make all other layers black? (So you only see the room)
I'm not sure if you can do this with MMF2 of TGF2, and I know you can't with older versions.
It was just like thinking out loud.

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd January, 2009 at 21:47:27 -

What Macadam says is a good idea.

 

  		
  		

JetpackLover



Registered
  01/03/2007
Points
  212
2nd January, 2009 at 21:55:20 -

I don't think I can use layers since by just having layers it adds lag to the game. Since I'm using background system box for my paralax layers, I wonder if I can do what you suggested as well. Thanks for the fast relpy btw.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
3rd January, 2009 at 02:02:46 -

No problem man!
I hope you can work something out, and get the effect you want!

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

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
3rd January, 2009 at 04:12:23 -


Originally Posted by DudeHuge
I don't think I can use layers since by just having layers it adds lag to the game. Since I'm using background system box for my paralax layers, I wonder if I can do what you suggested as well. Thanks for the fast relpy btw.



I don't mean to sound rude here... but I honestly wish people would stop considering layers inefficiently laggy, I mean honestly if anything that does something as God damn useful as layers is efficient, then I'm going to run a vote on saying that 3D graphics, pixel shaders, and texture mapping are all some of the most wasteful uses of technology I have ever seen in my life. Upgrade your computer and stop whining. Please.

 
http://www.facebook.com/truediamondgame

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
3rd January, 2009 at 05:19:45 -

use an overlay object that makes that blacks out the whole screen with (1,1,1), but then goes over the 'still revealed area' with a rectangle of (0,0,0); transparent. Then make the other active objects all invisible

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

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
3rd January, 2009 at 07:34:21 -

Layers do not cause lag on decent computers. I used to have a crappy 1.8 Ghz AMD Athlon XP (the old kind) and it ran layers just fine.
*EDIT ALSO
I had a game with parallaxing backgrounds, that i was able to play just fine on my mom's 300Mhz Celleron, 64 MB Ram.

Edited by Ricky

 
-

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
3rd January, 2009 at 22:11:05 -

I've run tests before and it is possible that layers slow down your game by simply having them. However I remember some particular problems with layers and background system boxes. DudeHuge, if you use normal backdrops instead of BSBs and you incorporate layers, then you should be able to do the layer hiding thing as well as parallax scrolling.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

JetpackLover



Registered
  01/03/2007
Points
  212
3rd January, 2009 at 23:30:09 -

Do I need to use the layers extension in order to make layers invisible, and reappear?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
3rd January, 2009 at 23:54:43 -

Yes. Like the Clickteam Movement Controller that controls the extra movements (pinball, space invader, etc.), the Layer object controls the Layers in runtime. Both are built into the runtime (meaning that they have no extensions), just like the Sub-Application.

EDIT: Oh yeah, you'd only need two layers, one with the main map, and the other containing the rooms that covers everything else with a large black quick backdrop object.

EDIT #2: Visual example below.
Image
Where the yellow-orangish lines are on each picture is the same Y coordinate on both layers, and where the blue lines are is the same X coordinate. One big black quick backdrop goes on the back of layer 2, with the room being a white backdrop with objects in it. Make layer 1 invisible and layer 2 visible when you enter the room, and vice versa.


Edited by an Administrator

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Remius Norumenu



Registered
  03/10/2008
Points
  6
4th January, 2009 at 17:32:15 -

Yeah, so basically you only need to use 4 of the active overlays you explained. Instead of placing them all over the place, program them to move where you need them to be in relation to the character.

 
Well well well.



That is all.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
4th January, 2009 at 17:50:56 -


Originally Posted by Ricky
Layers do not cause lag on decent computers. I used to have a crappy 1.8 Ghz AMD Athlon XP (the old kind) and it ran layers just fine.
*EDIT ALSO
I had a game with parallaxing backgrounds, that i was able to play just fine on my mom's 300Mhz Celleron, 64 MB Ram.



A-haha! I'd love to have a 1.8 Ghz machine. Though AMD's have always given me trouble. >_O

 

  		
  		

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
4th January, 2009 at 20:39:28 -

it was a bad system, would always overheat and crash

 
-
   

Post Reply



 



Advertisement

Worth A Click