Assign a function to a Table???
:D Well... Hello my fellow PSP Lua coders... :) OK so I know it's posible to create a table with a function, :confused: I just don't know exactlly how to do what I need to do, which is this:
1. I am creating a ScrollingCanvas table and I want to assign the function 'Move' to the table, to move the picture(canvas) around the screen using the tables position data (X, Y).
2. The question for you is: How do I create the table, so I can call the move method like this:
Code:
AScrollingCanvas:Move(X, Y)
Please Help. :confused:
PS. If I didn't give enough information, plz just PM me. ;)