Particle with bullet behavior

Get help using Construct 2

Post » Thu Oct 20, 2011 10:39 pm

Is it possible to create particle-like objects using the bullet behavior?

There's a "gravity" option on it, but I'm not sure how to use it or even if it does what I think it does..

What I'm trying to do is create an object that, after created, changes its angle from 0 (up) to 90 (down) gradually.

Thanks.
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Thu Oct 20, 2011 11:01 pm

You could easily have an "Always: Sprite.Angle=.Angle+90*dt" for theses objects which would turn it 90 degrees over one second (dt is fraction of 1 second divided by fps). So if you want it to turn slower make it, say 45*dt or 180*dt for a faster turn (you'd need to put in a condition to only do it when Sprite.Angle <90 in that case, though).
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Oct 21, 2011 5:08 am

Thanks, I managed to do it!

Didn't understand why the *dt though, does it make the turning smoother?
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Fri Oct 21, 2011 6:24 am

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


Return to How do I....?

Who is online

Users browsing this forum: spacedoubt and 3 guests