The Daily Click ::. Forums ::. Klik Coding Help ::. particle effects issue
 

Post Reply  Post Oekaki 
 

Posted By Message

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
5th March, 2009 at 18:57:13 -

im confused on how to work this. i have an event when you shoot enemy, it creates about 20 blood particles, and whatever damage script.

out side of that, i have an event that states if number of blood is greater than 0 then run the blood loop number of blood particles times

on blood loop, it spreads a value of 0 to the id of blood

on a separate event, on blood loop and loop index equals id of blood and blood start is equal to -1, sets it to a direction 135-random(90) (using vector movement, so within the clickteam movement control, i have the set to object script too) and sets start to 0.

the event creates the 20 particles, but for whatever reason, about 1 or two go off in a different direction, but the rest clump together and go down and to the right. its obvious that there needs to be a more efficiant script, possibly for the spread value.

there is also another event that is effected by this, when zombie is shot in head, it sets a flag on, when the flag is on, it creates a blood particle at his neck. that part works perfectly, but problably only because its only doing one at a time. i cant do that with the other one, or i dont really get how to do it. help?

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

Neuro

Ludologist

Registered
  29/10/2006
Points
  437

Game of the Week WinnerVIP MemberI'm on a BoatPokemon Ball!
5th March, 2009 at 19:14:11 -

I don't think the spread value and fastloop is necessary at all.
If blood start is -1, set the direction and set blood start to 0. They should all have different directions.

 
n/a

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
5th March, 2009 at 19:35:44 -

youre right, it isnt necessary, but it still has the same effect, except this time only one is able to escape the clutches of the evil cluster of blood.

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
5th March, 2009 at 22:16:30 -

Set the blood particles to pinball movement, then after they are created set their direction to random(32), that's all you need.

 
n/a

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
6th March, 2009 at 00:35:22 -

i actually fixed it. i created a new blood object, sort of like a blood exposion, then created it on impact, started a loop called "blood" however many particles i wanted to throw out.

then on loop blood, i did two events, one for the left side, one for the right side, on every loop, one blood particle is created, and angled either 180-Random(90) for the left and 90-Random(90) for the right. i also added a set x to (x-7)+Random(7) and vice-versa for the other side, then y to (y+7)-Random(14) so it kind of bursts out away from the enemy towards the direction he was hit, and with the vector movement, it gives all the blood particles gravity so they jump up and fall to the ground. nice huh?

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

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 March, 2009 at 00:46:15 -

Did you see the topic I revived from siven?

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click