Quote:
Originally Posted by Elk
Gonna try it
is this the correct negation of player xy in xy?
HTML Code:
if (player.x !in |this.x-10,this.x+10| && player.y !in |this.y-5,this.y+5|) {
|
You can't negate
in like that, try:
PHP Code:
if (!(player.x in |this.x-10, this.x+10| && player.y in |this.y-5, this.y+5|)) {
(If you could, you'd probably want to use || instead of && by De Morgan's laws. Unless I'm misinterpreting what you're trying to do.)