Hi all,
I'm creating a game and so far i have some problems..the purpose of the game is to reach gates where player can teleport to another level. So my question how to do that when player come on gates something happen?
I was tried to comparison positions of camera and the gates (gates is an object), but unsuccesfully. Any advices?
Gates
Gates
Boring life. Let's make it funny!
-
Guest
-
Guest
if(PlayerPosition.getDistanceFrom(gatePosition) < 500.f)
{
// Do it!
}
should work, nope?
{
// Do it!
}
should work, nope?
YASS - Yet another Space Shooter
under Devolpment, see http://yass-engine.de
under Devolpment, see http://yass-engine.de