Character Collision Knockback? Platformer.

0 favourites
  • 5 posts
From the Asset Store
Particles support animations, collisions, effects and etc.
  • I can get my character to jump and bounce off the enemy no problem. Everything works perfect as far as falling and the Y vector. The issue lies in if I am running at the character from left or right. Currently the Character will bump away from the enemy If approached from the left of enemy but walk right through if approached from the right side of enemy. So not both.

    Here is a screen cap of what I have down for the collision. (the AI movement was done with the same method as Ashleys "https://www.scirra.com/tutorials/253/how-to-make-a-platform-game")

    <img src="https://www.dropbox.com/s/x5gyaderon3vf5u/Screencap.png" border="0" />https://www.dropbox.com/s/x5gyaderon3vf5u/Screencap.png

    Thanks for any input!

    TodOrcim

  • hi !

    i did like that, it works !

    dropbox.com/s/6qfnpv91c63ghkv/test.capx

    player / X < monster.x / player / set platform vector x to -400

    else                    / player / set platform vector x to 400

    good luck !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sweet so that fixed one Issue. Now I am running into another. Although I can now bump into the enemy from either left or right, it only works if I am comming at him head on with him looking at the character. If you try and come up from behind you still run through. So close!

  • look into the capx , this problem is solved to with the same logix and set mirrored.

  • Ha yeah I jumped the gun I played around with it. Works perfectly. Thanks A lot!

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