How can you ask if a number is 5, give or take 1? (they are example numbers)

I would think there a better way to do:

        if math.floor(object.rotation) == targetangle+1 or math.floor(object.rotation) == targetangle-1 then

I can't use:
object.rotation == targetangle
because object.rotation gives values such as 55.44444444444444881

It seams stupid to use an OR statement.

use a <= or >= if that will help you

you can specify a range as

if (value>=target and value

views:1389 update:2011/10/18 15:01:22
corona forums © 2003-2011