1 | if swipe[1] == "right" and (mov1 % 7 ~= 0) then mov2 = mov1 + 1 end |
possible hidden characters in swipe[1]? Perhaps a space attached to the end somwhere? Try this:
print("[" .. swipe[1] .. "]") and see if there is something funky in swipe[1] that you're not expecting.
yeah i thought of that also but theres no hidden char.
heres the print line from termial
------------> rigth: 2 3
and this is the print statement im using
print("------------> "..swipe[1]..": "..swipe[2], swipe[3])
im only checking swipe[1]
swipe[2] and swipe[3] is the position the swipe started
is right supposed to be spelled "rigth"?
stupid me been looking at this all morning even checked spelling several times
thanks that fixed it