How to: Shoot to specific point, but continue moving?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
How do you shoot to a specific point but continue the projectile at a constant speed?

I've checked out how to shoot to a specific point tutorial (with game.attributes of game.mouseX and game.mouseY then on the individual actor placing a MouseX and MouseY self.attribute on them).

But I want the projectile to continue (and collide with collidable objects)

I've tried MOVE TO, ACCELERATE TO, INTERPOLATE, CHANGE VELOCITY, and I think, just about everything, but can't seem to figure out how to find a constant speed...

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Just uploaded a project called:

    "Shoot to Mouse Position and Beyond"

    Search for it in the new section of the GS start screen.

    Enjoy!
  • DrGlickertDrGlickert Member Posts: 1,135
    Thanks Scitunes!

    1 quick question; if I want the bullets to move a constant speed that's possible right? Just put on max velocity?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Did you try the demo? I'm pretty sure that the bullet is traveling at a constant velocity.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Oh, woops. I now see what you are saying. The farther you click from the shooter the faster it goes (I thought you were referring to the speed of one bullet being constant as in not accelerating).
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    OK, just updated it so each bullet has the same constant speed at all times.
  • DrGlickertDrGlickert Member Posts: 1,135
    DL - Yup, that's me. My brother did my website. It's pretty pathetic right now. NEVER, NEVER-EVER, work with family.

    He told me he'd do it for free, said he knew what he was doing, took on the reigns and never finished it.

    Oh well.

    I'm going to Med school in August so hopefully he'll have that updated by then!
  • DrGlickertDrGlickert Member Posts: 1,135
    I believe that'll do it SciTunes!! Thanks! You're the best!
Sign In or Register to comment.