Quote:
|
Originally Posted by jake13jake
I would probably think the best implementation would be something like:
onPlayerEntersMyShape() and onPlayerLeavesMyShape(). It would be comparable to having onPlayerEnters() and onPlayerLeaves(), but the player only enters a part of the level that's defined by an NPC's x,y,w,h... or leaves a part of the level that's defined by an NPC's x,y,w,h. It would make sense to call the onPlayerLeavesMyShape() for the NPC the player has not left the shape of before the player leaves the level. I ought to post this in my other thread about playertouchsme.
It would certainly help a bit to have such functionality.
|
I don't see the use of it being added in all seriousness. If you really want that functionality you could do it with a while() loop or so if you were so compelled using a combination of npc.x/y/width/height and player coords. Sadly the few times that I've used while() loops in conjunction with coord and keydown checks (with simple commands) seemed to make Graal unstable and often times crash. Sad day.