Collision objects player

0 favourites
  • 8 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi everyone, I have a little doubt, that is driving me crazy.

    Colisone need an object with another exactly the same point Y.

    Using this formula.

    Enemy Set 8 Direction vector Y to Hero.Y-Enemy.Y

    But not always work, he stays at his side without touching.

    Any ideas?

    And sorry for my English I am Spanish.

  • I'm not sure what you are trying to do..

    What has the vector-y to do with the collision event?

    Setting vector Y is setting the speed in pixels per second for the y direction..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I understand correctly your collision-event only triggers when the y-position is exactly the same..

    If you set a text-object to the y-position of the objects, you will probaly see it is never exactly the same..

    The 8direction enemy probably even never stops moving (although it might look that way).

    You could create an event with an action to set the y-position to the exact y when the difference is very small..

  • It is a beat up game, simulate 3D using 3 different layers. In order to change layer, the enemy needs to get to a position of the Y axis, but sometimes it is at the limit and can not hit the hero.

  • Did my previous answer help?

    If not, could you share your capx and/or events so we can have better understanding?

  • I still do not understand what you want to do.

  • So yeah, I keep changing layers for 3D effect, and for collisions use the proximity of the exer Y. I'm still experimenting with this.

    Thank you very much, I will keep you informed;)

  • Ok, seems like you are maybe overcomplicating things..

    Good luck!

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