How do I Make a sidescrolling platformer line of sight

0 favourites
  • 3 posts
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • Im making a platformer shooter, with an advanced aiming sistem for higher level enemies, how do I make this kind of line of sight so the enemy can detect where the player is and be able to use shoot like that?

  • You could always use the built in Turret behavior as well as the line of sight behavior

    that way whenever you have line of sight you can tell the enemy to fire with the auto aiming function of the turret behavior.

    hope that makes sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I dont know, I would like for it to have no rotation but animation change, like giving the enemy 5 lines, when the player overlaps one of those line he will change animation to an animation where he aim towards the end of the line and shoots, since the player is touching that line the bullet will touch there, Its kind of complicated, and the mechanic goes more than there, the idea is that he only sees to straight 2 sides, that means 32 pixel behind him and 160 pixels in front of him, in 2 cones of 10°, the other 3 cones that are the diagonal cones and upwards cone are inactive so it wont trigger an alarm,

    any ideas for making this? besides using an event that goes ''Enemy>on collision with sightcone = sightcone > pin to enemy" and ''enemy > is on screen = spawn 5 sightcone'' because I dont own c2 so Im really limited with everything

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