Blood

Non-platform specific questions.

Blood

Postby Legendz » Tue Oct 31, 2006 2:45 am

I was wondering how do i make a blood effect when someone gets killed. or an explosion efffect ??

and make particles fly off the screen :( :) :o :D
A Living Legend
Legendz
 
Posts: 4
Joined: Sat Oct 28, 2006 7:31 am
Score: 0 Give a positive score

Postby makslane » Tue Oct 31, 2006 11:59 am

Look the Smoke Particles demo:
http://game-editor.com/games/smoke.zip

And the particle fan example:
http://game-editor.com/examples/particle_fan.zip
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Legendz » Tue Oct 31, 2006 12:30 pm

I want to get an explosion effect when an actor gets destroyed.

can you gimme the script cause im a bit confused with the particle demo
A Living Legend
Legendz
 
Posts: 4
Joined: Sat Oct 28, 2006 7:31 am
Score: 0 Give a positive score

Postby Game A Gogo » Wed Nov 01, 2006 12:30 am

haaa, the good old bloood, ive done this a million and one time,

here is a quick way.
firts, create your blood particle
and on create actor do this:
Code: Select all
angle=rand(359);
directional_velocity=3+rand(3)/2;

on draw actor:
Code: Select all
transp+0.015;
if(transp>=1)DestroyActor...;

and then when your player dies, do this code:
Code: Select all
for (count = 0; count < 20; count++)
{
    CreateActor...;
}


and should work
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest