How do I draw a prediction line for bullet behavior?

Get help using Construct 2

Post » Wed Sep 07, 2016 11:41 am

Image

Don't really know the exact way to put it but it's something similar to this screenshot taken from the game "Peggle". I want to show a line that predicts the path of the bullet before shooting it. I believe Peggle is using Physics behavior but I'm using bullet behaviour for my game.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Wed Sep 07, 2016 2:19 pm

B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Wed Sep 07, 2016 7:18 pm

@Gmoney

Thanks for the tips. I need exactly that but one with bullet behavior. Do you know if it works the same? I try to replicate it but the path seems very different. Most importantly, I want to know the path after bouncing off solid object.
B
23
S
10
G
2
Posts: 104
Reputation: 3,071

Post » Wed Sep 07, 2016 7:47 pm

You're welcome, mrneko. :mrgreen:

Yes, the Bullet behavior can have parabolic trajectory, just the way Physics based ones do, by adjusting its gravity and speed.

But we don't always need the Bullet behavior, as the trajectory can be calculated without one as seen on the following threads.

how-do-i-make-parabolic-projectile-and-movement_t103232
parabolic-movement-between-2-points_t93771

This one has the prediction line you're looking for and it's not using Physics. :mrgreen:

calculate-curve-between-two-points_t85302

R0J0hound is the one you should seek for help in this matter, as I learned everything I know on the topics of parabolic trajectory from R0J0hound's great teachings.
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: RIDETHEPIG and 5 guests