Score and ParticleSprayer
Hi
I ran into a couple of road blocks that I'm hoping someone can help me with.
1. When the player collides with an obstacle, score is reduced by 3. The Event is that when score is <= 0, the game should end but it doesn't.
2. When the player collides with an obstacle, I would like a little spray of fire to show up at the point of collision. I tried using the Particle Sprayer Object but can't get it to work.
Any help would be appreciated.
Thanks,
Adrian
Re: Score and ParticleSprayer
I would probably just make it when score = 0. Unless you are dealing with negatiev numbers. So when score = 0 ( end frame)
2.
Have you animated that sequence in the animation editor? I am thinking a fast loop will help here.
Do you know how to create one?
If not let em know.
Re: Score and ParticleSprayer
Thanks for your help.
With regards to the score issue, let's say the score is 2 and the player bumps into the obstacle, the score would then be -1 (reduced by 3) that's why I used <=0. But for some reason, the game just keeps playing and the score is reduced to 0.
As to the second, I'm afraid I don't know how to create a fast loop nor have I animated the sequence. I thought the particle sprayer object would create the fire animation.
Re: Score and ParticleSprayer
Do you want a spray of fire in a circular array kinda. Cause that's the fast loop i am thinking of.
as for the score thing. Maybe try a counter instead of a score object. It can work pretty much the same. That way if the counter is less than or equal to zero... then you can say end frame or jump to another frame.
Re: Score and ParticleSprayer
Ok, I'll try a counter.
The fire should actually be a little flame that splashes up from the location of the impact. Kinda like a splash if someone falls into a pool.
Re: Score and ParticleSprayer
hmmm . Yeah a fast loop could work.
Okay! so. Find the condition you want the splash/ flame to start.
Right click under the special conditions box
and click fast loop start loop (name and when it comes to picking a number...try 30)
then create a new condition -
right click the speical conditions and then click "on loop"
Type in the name that you named the first loop.
Then insert a new line for when you want this thing to happen (when object collides (overlaps) another object)
Then under the object you want to create the flame spary right click under it's box
click shoot an object and then check the desired directions and speed.
and walla!
Re: Score and ParticleSprayer
You could use actives with pinball movement for the fire splash effect. Just adjust the speed/angle/gravity etc to get the right trajectory.
I'm working on a tank game, and the particle debris is nothing more than actives with pinball movement. I have a video on youtube of the work in progress:
http://www.youtube.com/watch?v=aK00OB5XB2g
I just use the create object command, and the actives have movement at start, so as soon as they are created, they begin their trajectory.
Re: Score and ParticleSprayer
Nice video, Shawn. :) Jumping tanks! Yay!
Stephen1980
Re: Score and ParticleSprayer
Quote:
Originally Posted by Stephen1980
Nice video, Shawn. :) Jumping tanks! Yay!
Stephen1980
Yeah gotta love jumping tanks! Nothing to jump over... yet!