Enemy Launch At Player

11clock11clock Member Posts: 450
edited November -1 in Working with GS (Mac)
I have an enemy in my game that will simply launch itself at the player like a missile. The problem is, I'm not sure how to make it shoot itself at the player without acting like a homing missile. It should go in a strait line until it goes off screen. I also don't want it to point at the actor because of the side-scroller view of the game (the enemy will be upside down in certain directions). Can someone help me?

Comments

  • rlehmrlehm Member Posts: 320
    Make it shoot itself at the player without acting like a homing missle. You lost me here.

    Can you summarize what it is you're looking to achieve in a few words? Like, I need a bullet to travel from the right side to off screen left side, x axis.
  • DrGlickertDrGlickert Member Posts: 1,135
    You'll have to constrain the player's X and Y position.

    Put a rule on the enemy to accelerate or move or change velocity or something like that to the players X,Y position. This will make the enemy "shoot" at the player.
  • 11clock11clock Member Posts: 450
    rlehm said:
    Make it shoot itself at the player without acting like a homing missle. You lost me here.

    Can you summarize what it is you're looking to achieve in a few words? Like, I need a bullet to travel from the right side to off screen left side, x axis.

    I need the enemy to launch itself at the player in a strait line, not continually follow the player. Picture bullets from a gun, only the enemy is using itself as ammo.

    @DrGlickert I'll try this, but I read that it doesn't work.
  • 11clock11clock Member Posts: 450
    How do I make the direction be a point?
  • starcatstarcat Member Posts: 107
    he wants bullet bill from mario..

    im no sous chef, but im guessing if its a top down or platformer kind of game, cant you just put it so that when the player is so close, play jump animation, then accelerate in X direction for x seconds?
  • 11clock11clock Member Posts: 450
    starcat said:
    he wants bullet bill from mario..

    im no sous chef, but im guessing if its a top down or platformer kind of game, cant you just put it so that when the player is so close, play jump animation, then accelerate in X direction for x seconds?

    No, I do not want a bullet bill from Mario. I don't copy other ideas (I'm actually against it when copying goes too far). Also, can you be more clear on what you're suggesting?

    @DrGlickert As expected, that didn't work. The enemy follows the player around.
  • starcatstarcat Member Posts: 107
    if you want the enemy to accelerate itself, thats bullet bill.. everything everyone does is a copy of something.

    theres 900 million other characters i could have talked about like the guys who run at you then slide, or whatever. but its the same idea, they walk then propel twords you
Sign In or Register to comment.