How do you make an enemy try to jump on the player?

0 favourites
  • 6 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • The enemy is supposed to jump and then try to fall on the player. I tried many things but the enemy always seem to miss the player. So how do you make it aim for you successfully?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The enemy is supposed to jump and then try to fall on the player. I tried any things but the enemy always seem to miss the player. So how do you make it aim for you successfully?

    I would like an anwer to this please.

  • The problem here is the jump? Or the fall?

    A little more info could help.

    Maybe a screenshot of your event list, for the jump/fall?

  • The problem here is the jump? Or the fall?

    A little more info could help.

    Maybe a screenshot of your event list, for the jump/fall?

    I think the problem is both the fall and the jump since the enemy need to aim for the player in both situations otherwise it will havw trouble jumping on the player no matter what.

  • The enemy is supposed to jump and then try to fall on the player. I tried many things but the enemy always seem to miss the player. So how do you make it aim for you successfully?

  • you mean stomp action? like mario jumping on mushroms?

    if your using platformer behavior for jumping and control... u can easy do this by adding 2 conditions on colision with enemy and detect if the main player is above the enemy... so the conditions wold be

    1 on collision with enemy

    2 is mainplayer falling ...

    action destroy enemy

    it may not work properly ... but the main idea is to calculate the main player position when he is above ... also if u using platformer behavior.. the only way you can make things solid, so the main actor can behave, like he hit something solid is by adding the solid behavior to other things in game...

    i think there is a platformer example around forum also.. doing exactly those things. ..

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