Comparing Variables to a Number
Posted: Thu Jun 28, 2012 1:22 am
I tried to compare a variable to a number for a simple collision system, but it didn't work out. I got an error message the next time I tested my game on LÖVE saying, "attempt to compare string with number". I tried everything to solve this, but nothing worked. I even tried to put the function after the code registers the variables. So I decided to come to you guys.
Is there any way this can be solved?
I also uploaded the .love if that's any help. The forum rules said to do so.
Is there any way this can be solved?
I also uploaded the .love if that's any help. The forum rules said to do so.