How do I create line from equation ?

Get help using Construct 2

Post » Wed Aug 05, 2015 11:39 pm

Hello ! I'm making a minigolf game and I stuck on a feature I want to add.

The feature is a dotted line who show the curve the ball will browse. Like it implemented in Angry Birds.
Image

I have no idea how can I start doing it, I success to create a line between to points but it doesn't represent the real curve.

How implement it ?
B
3
Posts: 5
Reputation: 179

Post » Thu Aug 06, 2015 4:06 pm

https://www.desmos.com/calculator

Then start fiddling with the math until you get what you are wanting.

Try plugging this in:
-\frac{x^2}{15}+6
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Thu Aug 06, 2015 7:53 pm

B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Fri Aug 07, 2015 8:52 am

@Proxyma

Here is a similar approach I took to create an angry bird type game. The farther you pull back on the slingshot, the more velocity you give the projectile... it plots a dotted line to show where the bird will go.

http://www.rieperts.com/games/forum/angry_birds.capx
B
95
S
33
G
20
Posts: 438
Reputation: 17,640


Return to How do I....?

Who is online

Users browsing this forum: evillair, YoHoho and 10 guests