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
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

Post » Thu Aug 06, 2015 7:53 pm

B
94
S
33
G
123
Posts: 5,450
Reputation: 78,463

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
99
S
35
G
20
Posts: 438
Reputation: 17,930


Return to How do I....?

Who is online

Users browsing this forum: jrsetti and 20 guests