The Daily Click ::. Forums ::. Klik Coding Help ::. Cool explosions using Alpha Channels
 

Post Reply  Post Oekaki 
 

Posted By Message

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
14th May, 2008 at 13:36:16 -

Hi guys!

I've noticed lots of excellent looking explosions and lighting effects using Alpha Channels recently and want to do something similar for explosions on my game, R.P.G. - Rocket Propelled Guts! However, i have no idea where to start! Any help would be so welcome please, i'm pulling my hair out!!

 
Image

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

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
14th May, 2008 at 14:07:01 -

The most common way to create nice looking visuals like explosions, fire, water, and light, usually involve using both the alpha channels and the add pixel shader (using HWA) or the add ink effect. This way as you pile a few objects on each other, they all appear to merge together.

A very simple explosion styled particle effect is:
Always Set X of Object to ObjectX + Alterable Value A
Always Set Y of Object to ObjectY + Alterable Value B
Always Add to Alterable Value B
If Alterable Value A > 0 Then Subtract 1
If Alterable Value A < 0 Then Add 1

Then to create the particle effects:
Create Object and Set Alterable Value A to Random ( 16 ) - 8 And Set Y to Random ( 8 )

This allows the object to move the amount of pixels in the alterable values, relative to their own position, and when you create the object you're setting those values. Tweak as necessary.

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
14th May, 2008 at 14:21:20 -

http://www.mediafire.com/download.php?m9mxuqcxmly Hope this helps.

 
You can log off any time you like, but you can't ever leave.

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
15th May, 2008 at 10:17:03 -

Wow, thanx guys - you've both been really big help!!

 
Image

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

Kokocipher



Registered
  03/06/2008
Points
  439
17th June, 2008 at 16:02:46 -

this is so cool, thanks.

 
http://blog.kokoarcade.com

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
17th June, 2008 at 16:08:09 -

Er.. thanks?

 
You can log off any time you like, but you can't ever leave.

Roseweave



Registered
  31/07/2007
Points
  341
18th June, 2008 at 07:12:08 -

Well worth playing around with the Particle object generator too. Nifflas also recently released a little program that does something similar.

 
Check out my Telekinesis'em'up Thread and the ALICE Machines -

http://www.create-games.com/project.asp?id=1213

"Did you know there's a million bucks hidden in the house next door?"
"But there is no house next door?"
"No? Then let's go build one!"
   

Post Reply



 



Advertisement

Worth A Click