Flipping particles?

Get help using Construct 2

Post » Fri Jun 08, 2012 4:47 pm

This time I got a quite simple question. How do I flip particles when character is mirrored? I tried turning the particle 180 degrees instantly after it is spawned, but it doesn't seem to work.

There isn't any mirroring actions so I belive mirroring the effect and its graphics isn't an option. That doesn't matter because I just want the effect to turn around and move into opposite direction.
B
15
S
5
G
4
Posts: 214
Reputation: 3,124

Post » Fri Jun 08, 2012 4:58 pm

If you use "Spawn another object" on your character sprite, and not "System -> Create object", the particles spawned should be spawned with the character's angle.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 08, 2012 5:56 pm

Sounds alright, but I'm not using angles for my character. Only mirroring and animated transitions.
B
15
S
5
G
4
Posts: 214
Reputation: 3,124

Post » Fri Jun 08, 2012 6:21 pm

Ah, sorry, I see. You should put an event right after the particle is spawned:
[code]Character is mirrored:
-> Set Particle angle to: Character.Angle-180
[/code]
Nimtrix2012-06-08 18:30:08
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 08, 2012 7:31 pm

That's what I tried. It turned the angle of the particle, but the graphic itself didn't turn around. I mean, the particle is shooting these sort of arrows/waves and I want the to turn around as player is mirrored.

I did it the "dirty" way and made another particle system with mirrored graphics. This is actually something that should be added to your to-do list :O
B
15
S
5
G
4
Posts: 214
Reputation: 3,124

Post » Fri Jun 08, 2012 7:41 pm

Did you use "Set bullet angle"? Try "Set angle" instead.Nimtrix2012-06-08 19:42:50
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 08, 2012 7:54 pm

Example capx (made in r93)
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Jun 09, 2012 12:06 am

i think he means that the particle graphics dont rotate with the angle and that is true, the particle-flow rotates with angle not the graphic,

arrows are a good example, when spawning, they will always be in the same direction, there is no rotationcontrol on the particles
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028


Return to How do I....?

Who is online

Users browsing this forum: Lof, YoHoho and 22 guests