Angry birds like path

0 favourites
  • 5 posts
From the Asset Store
Play this game against AI, other player via Internet or with you friend on the same device.
  • 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.

  • I think there's an example of an angry birds clone somewhere on the forums :)

  • 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.

  • You'll need the canvas plugin ...

    Big Credits to R0J0 , he made me an example

    he 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.

    edited><editID>Whiteclaws</editID><editDate>2012-12-18 23:49:20</editDate></edited>

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you all for your help, i did it and now it looks really cool.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)