Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by KenD

I'm currently using check() in my enemy entities to handle damaging/killing my player entity. I now have a need to check the axis, so I'm planning on putting that logic in collideWith() but was wondering what most people used, or if it's simply dependent on the game type?

My player moves forward at a constant rate, but can move up and down and I've been asked to make obstacle collisions that occur on the y axis to not kill the player (it's a kids' game - it's supposed to be easy :) )

1 decade ago by Arantor

Mostly depends on what you're doing, rather than on the game type.

In this case, it sounds to me that you want to use collideWith() and check on the X axis.
Page 1 of 1
« first « previous next › last »