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
111
S
38
G
40
Posts: 817
Reputation: 27,176

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
111
S
38
G
40
Posts: 817
Reputation: 27,176

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
258
S
90
G
48
Posts: 7,083
Reputation: 62,882


Return to How do I....?

Who is online

Users browsing this forum: IGDev and 1 guest