projectile motion

st1031130082st1031130082 Member Posts: 2
edited May 2015 in Working with GS (Mac)

Hi , I am making basketball game and I want to use the projectile when the player throw the ball .

thanks

Comments

  • st1031130082st1031130082 Member Posts: 2
    edited May 2015

    Hi , Iam making basketball and i want to use the projectile motion when the player throw the ball .

    thanks

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    what have you tried so far? There are hundreds of ways to do this, is something not working?

  • GnarlyGnarly canadaMember Posts: 840

    I think you are asking for an arc movement for an actor? You can search gamesalad actor moves in arc and see old threads...

  • SLOCM3ZSLOCM3Z Member Posts: 797

    @st1031130178 Just have the player spawn the basketball in the direction you want and have the basket ball accelerate downwards.

  • barleyesqbarleyesq Member Posts: 72

    You might want to try the 'Realtime Projectile Trajectory' demo here:
    http://orbz.com/gamesalad-demos/

    I'm trying something similar right now, but am looking to reduce the length of the arc (so it doesn't show the whole way). Unsuccessful so far, but let me know if anyone has any ideas for that. I can change the number of plot points, but seemingly not the length of the arc!

  • Walid.kWalid.k Member Posts: 1


    for Barleyesq.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited December 2015

    Here is some code for throwing a ball. The constrains are to self.motion.linear.velocity X & Y. I used gravity in this game but you can use simulated gravity by adding an accelerate behavior down. This method keeps collisions intact.

Sign In or Register to comment.