How do I

0 favourites
  • 10 posts
  • Hello everyone

    I'm sorry for my English.

    I'm doing a flamethrower with particles for the fire. But wanting to make the fire burn ( destroy ) the enemies I can not do it.

    In the tutorial Ghost Shooter, the bullet had this event:

    Bullet -> On collision with another object -> pick Monster .

    Acción: Monster -> Destroy

    Acción: Bullet -> Spawn another object -> Explosión , layer 1

    Acción: Bullet -> Destroy

    But the particles seem to have On collision with another object...

    Do not you can make fire with particles ?

    Is there any way to do this ?

    Thank you

  • As far as I know you can not use particles for collision. It's only a graphical effect.

    You can try to mix sprites in the particles. You have to look how many, so that the sprites will really hit what you want.

    I made a litte time ago something similar, maybe is useful for you:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    Click on any of the blue boxes and it will explode and if the 'particles' hit a other box it will explode too. Double click anywhere will restart the layout.

    I mixed 15 sprites in 100 particles in every explosion. You will see that sometimes it is not enough and a box will not explode, but to many sprites will affect the CPU Usage.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Easy.... FAKE IT!

    Have your flame thrower throwing particles like normal.

    When flame thrower is active have it "shoot" invisible sprite bullet (a sprite set to invisible) that DO have collision and are destroyed after the correct range of your "flame".

    Now it looks like your flamethrower is dealing damage when its really invisible "bullets".

    Set the damage value to low on the bullets and their spawn rate to high and you get a very satisfying constant damage effect on target consistent with other flamethrower effects in games.

    P.S. Invisible sprite bullets are also good for directional magical spell attacks too...

  • Thank you

    It's what I had in mind but did not know if that solution would be poor .

    Thanks again and I get to it !!

    EDIT:

    Works!!! Thank you!!!

  • Its only poor if it uses up too many resources or somehow gets in the way of other features or further development!

  • Its only poor if it uses up too many resources or somehow gets in the way of other features or further development!

    Ok!!

    I have an other question.

    By making the Sprites invisible to simulate fire damage is leaving many Sprites followed .

    I want you to shoot out three no more and after a while again leaving another 3 , but I can not do it.

    Or the Sprites instead of leaving in a long line are spaced :

    ....................... -----> so leave sprites

    I want them so (guines are to simulate the spacing)

    . --------- . ------------- .

    or

    ... ------------- ... ------------- ...

    not if I explain

    EDIT:

    By the way, I want to create small fires by fire, would it be better flames created with particles or fire animated sprites ? The fire would not be eternal , it turns off after a few seconds.

  • Let me make sure I understand... your wanting the invisible damage sprites to spawn 3 in a row and then be destroyed followed by a delay and then repeat?

    ie. damageSprite, damageSprite, damageSprite (destroy,destroy,destroy) (delay) damageSprite, damageSprite, damageSprite (destroy,destroy,destroy) ?

    As far as sprite fire or particle fire it really depends on the look of your game.. particle fire would be easier once you got the right particle look since you don't have to animate it... but particles can begin to add up if you use many in your game at once.

  • Let me make sure I understand... your wanting the invisible damage sprites to spawn 3 in a row and then be destroyed followed by a delay and then repeat?

    ie. damageSprite, damageSprite, damageSprite (destroy,destroy,destroy) (delay) damageSprite, damageSprite, damageSprite (destroy,destroy,destroy) ?

    As far as sprite fire or particle fire it really depends on the look of your game.. particle fire would be easier once you got the right particle look since you don't have to animate it... but particles can begin to add up if you use many in your game at once.

    yes.

    Now they go like this:

    .............................

    I do not want that.

    I want just what you say.

    Press left button and Hold down:

    spritedamage, spritedamage,spritedamage (destroy,destroy,destroy) delay spritedamage, spritedamage,spritedamage (destroy,destroy,destroy)

    I lack the delay

    The destroy I have it so:

    spritedamge (bullet)-----Bullet distance travelled 200 pixels-------spritedamage destroy

    I read some post , but has not left me.

    I have tried with Wait x second, but no work

    Sorry my English

  • Try this:

    https://drive.google.com/open?id=0Bx-ufu2WID53S2pfejgwYnNQY3M (click the download arrow in the upper right corner of the screen)

    My example uses spacebar to fire, I didn't add the destroy, and the damage sprites are visible so you can see their spacing... otherwise the art work is spectacular...

  • Try this:

    https://dl.dropboxusercontent.com/u/2346355/construct2/Helping/FlameThrowerDamageTimed.capx

    My example uses spacebar to fire, I didn't add the destroy, and the damage sprites are visible so you can see their spacing... otherwise the art work is spectacular...

    Thank you!!!!!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)