The Daily Click ::. Forums ::. Klik Coding Help ::. Explode into pieces
 

Post Reply  Post Oekaki 
 

Posted By Message

jbjovi



Registered
  22/07/2007
Points
  41
6th May, 2008 at 01:33:38 -

Hello everybody,

I'm new on this forum even if I read this site for a few months now.

I have a problem with a project I'm working on. I want the main caracter to explode into pieces when he die but I can't find an "easy" way to do it. Maybe someone here know how to do this or where I can find a tutorial explaining how. I have searched on the tutorials here (in articles and in downloads) but did not find any.

Sorry for my poor english, I'm french.

Thank you.

 
n/a

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
6th May, 2008 at 02:19:58 -

Haha I was confused when the title in the sidebar said "Explode into Pie..."

The easiest way to do this (assuming you're using MMF2) is to make a bunch of objects that are pieces of your player and when he dies, create these at him. They should all have pinball movement with directions set upward if you want it to look moderately cool.

The complex way would be making the gravity system yourself etc.

 
Image
http://bfollington.tumblr.com

jbjovi



Registered
  22/07/2007
Points
  41
6th May, 2008 at 05:26:22 -

Making my own gravity system is not a problem, but as you said it's not the easiest way to do it. And not the fastest too. On retro remakes forum, someone offered to help me with that (very kind peoples on RR, like here). But I'll try that thing with pinball movement, so thank you very much.

If anybody as another idea, don't be shy...

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
6th May, 2008 at 10:13:17 -

or you could use ball movement for the exploding parts and do this with them

create part at 0,0 to the player
set speed to 50
set direction to 0
create part at 0,0 to the player
set speed to 50
set direction to 8
create part at 0,0 to the player
set speed to 50
set direction to 16
create part at 0,0 to the player
set speed to 50
set direction to 24

when part is closer than 0 pixels from window edge. Destroy part.

 
.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
6th May, 2008 at 11:32:31 -

Indeed, first thing I thought of was bouncing ball movement. I used it in asteroids.

 

  		
  		

jbjovi



Registered
  22/07/2007
Points
  41
6th May, 2008 at 13:35:40 -

I have made it using the pinball movement and the effect is really great, just what I was searching for. General Zod on retro remakes forum as made something great too, It's not unpredictable like with the pinball movement but it works really well too.

So thank you for the tips, the result is really great. It's too bad I can't put a file here for you to look at those two methods.

 
n/a

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
6th May, 2008 at 14:17:02 -

Yes you can. www.mediafire.com

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

jbjovi



Registered
  22/07/2007
Points
  41
6th May, 2008 at 16:30:17 -

I have an account on mediafire, but didn't think about it... I'll post it tomorrow, if this can help someone else.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
6th May, 2008 at 16:43:47 -

why dont you just animate the death sequence? its alot easier (if your not overly familiar with MMF)

 
n/a

nim



Registered
  17/05/2002
Points
  7234
6th May, 2008 at 20:27:13 -

Aww. I also saw the subject on the sidebar and was expecting bullet-time videos of exploding pies. I feel deceived.

...



 
//

jbjovi



Registered
  22/07/2007
Points
  41
7th May, 2008 at 00:41:18 -

I don't want to do an animation for the death sequence for 3 reasons :

- I'm not a pixel artist and,
- The result is always the same.
- And the best way to learn, is to experiment no ?

 
n/a

jbjovi



Registered
  22/07/2007
Points
  41
7th May, 2008 at 01:13:23 -

Here are the links for you to test :

Pinball movement :

http://www.mediafire.com/?z3nhjjzdmjz

General Zod (this one need flame object) :

http://www.mediafire.com/?ddpmxe2ubyl

These files are EXE file, but if someone want to see the code, I'll make screen capture, even if for mine, there isn't much to see in the code.

Image Edited by the Author.

 
n/a

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
7th May, 2008 at 06:17:48 -

http://pmsrvr.com/click/click?pid=mediafire&site=download&cid=hj <--- Here's A little open source explosion that kinda looks like a firework!

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

jbjovi



Registered
  22/07/2007
Points
  41
7th May, 2008 at 13:58:40 -

Sorry but is it a joke ? As said in my first post, I'm not english...

Do you mean you'd prefer an mfa file instead of an exe file ? If I'm right, just ask and I'll give you with great pleasure.

 
n/a

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
7th May, 2008 at 14:19:53 -

Er.. no it wasn't a joke. I was just uploading a cool explosion while we were on the topic.

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

jbjovi



Registered
  22/07/2007
Points
  41
7th May, 2008 at 16:23:46 -

Ok, sorry

But when I click on your link, the only thing I got is a yahoo page, but nothing related to an explosion !

I NEED to take some english lessons again !

 
n/a

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
7th May, 2008 at 16:46:59 -

What the....? Well heres a less direct link that should work. http://www.mediafire.com/download.php?m1nn1flm4dy

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

Post Reply



 



Advertisement

Worth A Click