Problems with intertia

RocketBrainRocketBrain Member, PRO Posts: 269
edited November -1 in Working with GS (Mac)
i think i remember reading somewhere that GS as it stands has a little trouble with true physics.

need help fixing the problems

basically i touch a spot and the gun fires a bullet at that spot. unfortunately when i touch again the bullets that were still "in the air" curve to the new spot. drives me nuts. i need them to fly in the direction they were fired once they are fired. can this be done?

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    You're gonna want to change a self attributes in the bullet to the current touch position, then never have that change, so you can have the bullets keep going to that spot.
  • RocketBrainRocketBrain Member, PRO Posts: 269
    thats not making sense to me for some reason
  • hackmodfordhackmodford Member Posts: 48
    Okay... right now you have a global attribute set up for where the bullets go to.

    Each time you make a new bullet the global target changes.

    Therfore the old bullets will go to the newer target instead of their original target.

    You need to setup an actor attribute that can keep track of the target.

    That way each individual bullet can have a different target.

    Make sense?
  • RocketBrainRocketBrain Member, PRO Posts: 269
    nevermind got it, but it stops at the position. progress has been made. any idea on how to make it continue? wait, what if i find a way to make it move backwards from that point once its gotten to that point?
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Use vector to angle between its starting position, and the click, then make it accelerate in that direction by changing a self attribute to that angle.
  • ORBZORBZ Member Posts: 1,304
    It's not an issue with GS, it's an issue with your game's logic.

    See my demo:

    http://gamesalad.com/game/3097
Sign In or Register to comment.