Angry birds like path

Get help using Construct 2

Post » Tue Dec 18, 2012 7:07 pm

I was wondering if it would be possible to implement in a game i am doing in construct 2 (which has gravity) a path wich tells you the direction of the proyectil (which would make a parabola) like when you hold one of the birds in angry birds.

B
4
Posts: 6
Reputation: 362

Post » Tue Dec 18, 2012 7:36 pm

I think there's an example of an angry birds clone somewhere on the forums :)
B
11
S
2
Posts: 43
Reputation: 1,411

Post » Tue Dec 18, 2012 11:18 pm

I'm sure in the newer beta release there is a basic catapult template to build off of.

If you want to get the path. I suppose you could make an invisible sprite that shoots of on every angle change. Then draw a dotted line as it goes.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Tue Dec 18, 2012 11:48 pm

You'll need the canvas plugin ...
Big Credits to R0J0 , he made me an example
[Quote]The path of a jump is not an arc it's a parabola.

Here are two posts with the math of projectile motion:
http://www.scirra.com/forum/trajectory-line_topic52517_post330051.html#330051
http://www.scirra.com/forum/arcing-projectile_topic54153_post338734.html#338734

Here is a capx:
http://dl.dropbox.com/u/5426011/examples14/trajectory.capx
The platform behavior is not exact so the path can't be calculated exactly.
[/Quote]Whiteclaws2012-12-18 23:49:20
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Dec 21, 2012 8:25 pm

Thank you all for your help, i did it and now it looks really cool.
B
4
Posts: 6
Reputation: 362


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests