How do I create a dotted preview of a ball trajectory like in Angry Bird ?

0 favourites
  • 2 posts
From the Asset Store
Connect the dots in the correct order and complete the shapes!
  • Hello everyone,

    I am currently developing a golf game called "Rune Golf" and I am currently working on improving the aiming system that allows the player to visualize the power of their shot and a small preview of the direction the ball will take. The game is based on the physics behavior of Construct 3.

    Currently, my system allows for visualizing the straight-line trajectory in which the ball would travel. However, it is simply a dotted sprite indicating the direction, but it does not take the game's physics into account (meaning the dots represent the ball's trajectory as if its force were continuous and infinite).

    The problem is that I would like this dotted line to adapt to the force the player puts into their shot. The ball will indeed travel in a straight line if the shot is powerful, but it will follow a more arched trajectory if the shot is weaker. The ideal would be a dynamic trajectory preview system, similar to what Angry Birds does.

    If anyone has any ideas or suggestions on how to implement this in the game, I would be very grateful!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can calculate the ballistic trajectory. Here's an example.

    howtoconstructdemos.com/trajectory-calculation-two-methods

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