How do I Get a Object to Fly in an Arc and Rotate a Bullet?

0 favourites
  • 8 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Two Part Question, since I didn't wanna make multiple post.

    • Question 1:

    How do you get an object (in this case a 'Fish' sprite) to fly in an arc? Tried searching a few topics here, but didn't find any that helped. Here's a pic to describe what I want it to do:

    http://i.imgur.com/hI2BRxt

    I use a sine function to make the fish 'jump' out of the water and fall back in. It also rotates while moving.

    • Question 2:

    How do you get a 'Bullet' object rotate after it is fired from a turret? Everytime I add a 'rotate' behavior to the 'Bullet' object, it just rotates in an odd fashion. I will try to post a pic of the event code to show what I'm doing with it.

  • For 1, try giving it Bullet behavior and adjusting the Gravity parameter.

    For 2, I'm not sure what result you're after... Do you want the projectile to spin while it flies, or do you want the bullet's path to curve? If you set the Bullet behavior parameter Set Angle to No, then it should spin but its course will be unchanged. If you set it to Yes, changing its angle will also change its angle of motion.

  • For 1, try giving it Bullet behavior and adjusting the Gravity parameter.

    For 2, I'm not sure what result you're after... Do you want the projectile to spin while it flies, or do you want the bullet's path to curve? If you set the Bullet behavior parameter Set Angle to No, then it should spin but its course will be unchanged. If you set it to Yes, changing its angle will also change its angle of motion.

    Sorry for the delay (been busy as hell), but I will try the 'Gravity' advice for the 1st one.

    For the 2nd, I believed I tried both of them, and neither worked. I haven't been using C2 of late, so when I load it back up I will post the results I get.

  • Check out my example. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    https://www.dropbox.com/s/bdxtzh6yw5o4y ... .capx?dl=0

  • Check out my example. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    https://www.dropbox.com/s/bdxtzh6yw5o4y ... .capx?dl=0

    Again, thanks, will look into that. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • You're welcome, ShinobiSlash.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're welcome, ShinobiSlash.

    Got it working...again thanks for the help guys! Repped!

  • You're always welcome, ShinobiSlash. I'm glad it worked..!!

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