Enemy AI Please help

This forum is currently in read-only mode.
From the Asset Store
Enemy turtles pack including fifteen fully animated variations
  • Ok, ive decided to make a sprite and made it rotate 360 degrees all the time because i wasn't bothered to do animations.

    but now the problem is i want to make it rotate towards the player as soon as it's created. Just like the ghost shooter tutorial with the bullet behaviour and everything.

    but does anyone know how to make it rotate towards the player without the same concept?

  • If you want it starting off facing the player then make a "Set angle" action immediately following the create action. Like so:

    + Condition

    • System: Create object pointySprite at x, y
    • pointySprite: Set angle towards player

    Otherwise, I'm not sure exactly what you mean. If you could explain more concisely that would help. What do you mean by "without the same concept?"

  • wat i mean is i made the object always rotate so i can't make it 'set angle' to anything.

    So i want it to move towards another object while rotating.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually, I have the same problem. I made a character that shoots rotating circle saw-like things. The projectile uses bullet movement, and if I make the sprite to rotate, the rotating angle affects the movement too. They should implement texture angles and actual moving angles separately.

  • I'll add an angle-of-motion thing to the bullet movement for the next build... but as a workaround for now you can make the bullet object invisible, and put a rotating sprite on top of it (always set position to another object). Put them both in a container and the paired creation/destroying is done automatically.

  • that works perfectly thanks

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