Particle Issue

Get help using Construct 2

Post » Fri Mar 09, 2012 6:35 am

http://www.box.com/s/dfgblmgtfmanyxjqzqlp

Can ya'll help me? I have a simple missile launcher with 2 missiles. The turret follows the mouse.   Left Click once, fires the missile. particles are spawned and every tick forced to stay behind the missile. click again to fire the second before the 1st leaves the screen. then right after the first missile is destroyed when event "Missile not on layout Destroy missile and destroy particle" happens, click the mouse. No further missiles will fire because amount = 0..

PROBLEM: The second missiles particles will stop wherever they were when you clicked the third time, and not stay attached to the missile.

Why? And can you help me fix it?

Thanks Forum Buddies!
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Mar 09, 2012 9:13 am

http://dl.dropbox.com/u/13312935/LauncherV2.capx

Here is "A" solution, (probably not the best!).

I cant really explain it - But i have a feeling that the other particle stops because there is an uneven amount of particles on the screen. And you only have 1 event binding the particles to the missle.

To fix it i simply put the particles to a holder object instead of destroying it. I added fade to the particles so they should be destroyed in their own time.
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Fri Mar 09, 2012 2:49 pm

Thanks, @GenkiGenga. That is a descent work around... but I am going to keep at it until I figure out what is going on. My logic must be tweaked somehow. Anyone else got an Idea.
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Mar 09, 2012 3:03 pm

Event 12 - missile: Set SmkID to Particles.UID - not IID
Event 5 - missile: Is Launched -> set particles pos and angle - remove "for each" and "pick"shinkan2012-03-09 15:13:41
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Fri Mar 09, 2012 4:48 pm

Thanks @shinkan. I think that fixed it.   Thanks Guys!   
B
192
S
6
G
7
Posts: 213
Reputation: 10,178


Return to How do I....?

Who is online

Users browsing this forum: GUN and 20 guests