Custom Particles Angle Bug

Bugs will be moved here once resolved.

Post » Sat Oct 25, 2014 7:54 am

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
ParticleBugExample.capx


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!
You do not have the required permissions to view the files attached to this post.
@StylianosArts
Game studio with a portfolio of 4 Apple Featured games.
B
31
S
7
G
2
Posts: 112
Reputation: 2,424

Post » Wed Oct 29, 2014 3:50 pm

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.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Post » Wed Oct 29, 2014 4:33 pm

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.
@StylianosArts
Game studio with a portfolio of 4 Apple Featured games.
B
31
S
7
G
2
Posts: 112
Reputation: 2,424

Post » Tue Nov 29, 2016 4:35 pm

awesome! it took me a little bit to figure that out too. thanks for posting!
B
10
S
2
Posts: 22
Reputation: 651


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests