Okay, I think I understand better now, thanks for the help.
Now I've just gotta work on only moving it upon the "release" of the directional keys.
EDIT: After reviewing the tutorials, I understand how it works now. I tried to increase/decrease a variable that I had not defined yet. Thanks again for the help!
Your code had only one line that contained an error and if anyone else would like to use the code I'm going to post the correct changes:
From this:
| Code: |
if pad:down() then cursor.x = cursor.x - 3 end
|
To this:
| Code: |
if pad:down() then cursor.y = cursor.y + 3 end
|