08-15-2013, 03:49 PM
Code:
int ego(){
int xdistance = (self.x-target.x)*(2*(self.facing?1:0)-1);
int hitable = (target.y == 0 && target.state != 6 || target.state != 14);How can i create more variables? When there is only one (int xdistance) everythings working, after add another one (int hitable), I'm getting this error:
Can't implicitly convert from 'bool' to 'int'.

Chat
