Custom Particles Angle Bug

0 favourites
  • 4 posts
From the Asset Store
Particles support animations, collisions, effects and etc.
  • Problem Description

    I tried creating custom particles.

    I created a sprite with bullet behavior and put on created set angle to random(0,360) and

    I entered on enemy click spawn particles sprite.

    The problem is when the particles are created they all go towards 1 direction.

    Attach a Capx

    [attachment=0:2xpobg8r][/attachment:2xpobg8r]

    Description of Capx

    Sprite with bullet behaviour(Particles). To override the problem I used set angle again (The disabled action in capx).

    Steps to Reproduce Bug

    • Step 1 Left click at the Enemy Sprite(Red)

    Observed Result

    The particles go towards one direction.

    Expected Result

    The particles should go towards all directions.

    Operating System and Service Pack

    Windows 8.1 Pro

    Construct 2 Version ID

    r185

    Thank you for reading!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as won't fix, it's working correctly. The 'Spawn' action works like this:

    1. Create the object

    2. Trigger 'On created'

    3. Set the object angle to the angle of the object spawning it

    Since you set the angle in 'On created', it's overridden by the 'Spawn object' action.

  • I discussed this with some members of a Construct 2 group before posting and they informed me that this

    was an unexpected behavior that's why I posted in the first place.

    Since you explained the order of spawning, I now understand how it works.

    Thank you very much for your time.

  • awesome! it took me a little bit to figure that out too. thanks for posting!

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