Trouble With Platformer Enemy

This forum is currently in read-only mode.
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • To put it simply, the enemy involved with this particular problem is supposed to be killed by having his head being jumped on. But every time I try to jump on his head, he just keeps on sliding past me. I'm unsure if the problem is collision mask related, or just the fact that he turns so fast when the player is in the opposite direction of him, but being able to kill him is nearly impossible.

    Here's the .cap:

    dl.dropbox.com/u/42313097/Boss%20Man%20V13.cap

    Can anyone help?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Movement and direction

    ll_security: x greater than george.x -> set angle to 180

    ll_security: x lower than george.x -> set angle to 0

    Thats why you can't jump on him xD

    He will go in the opposite direction as soon as he crossed the players X coordinate^^

    maybe try

    ll_security: x greater than george.x + 60 -> set angle to 180

    ll_security: x lower than george.x - 60 -> set angle to 0

    the higher you add/subtract, the more he will stay in a direction before he will run in the opposite direction^^

  • That does solve the issue of the enemy turning so fast, thanks.

    Although I still can't land on his head (Therefore killing him) most of the time. I just keep sliding right off for some reason. My collision masks are basic boxes, so that shouldn't be the problem, should it?

  • 1-uncheck "solid" in the hero attributes (it's for the environment, platform characters slide on collision with solid object)

    2-set the enemies' hotspot in thecenter of the character (not in the center of the sprite)

    3-in the "battle" event sheet, try removing the condition that theenemy.Y is greater than the hero bottom.It works better like that.

    there are other problems in the way the enemies are made to move. But now you can jump on them sometimes

  • 1-uncheck "solid" in the hero attributes (it's for the environment, platform characters slide on collision with solid object)

    2-set the enemies' hotspot in thecenter of the character (not in the center of the sprite)

    3-in the "battle" event sheet, try removing the condition that theenemy.Y is greater than the hero bottom.It works better like that.

    there are other problems in the way the enemies are made to move. But now you can jump on them sometimes

    Your first suggestion worked perfectly, now it works every time! <img src="smileys/smiley4.gif" border="0" align="middle" />

    I also followed the second suggestion too, but the third one would make it so that the enemy just gets killed on contact.

    Thanks for the help, decian_gage.

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