Come on man your suposed to know this, I recommend you look for a tutorial.
Well... Hello my fellow PSP Lua coders...
OK so I know it's posible to create a table with a function,
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:Please Help.Code:AScrollingCanvas:Move(X, Y)![]()
PS. If I didn't give enough information, plz just PM me.![]()
Come on man your suposed to know this, I recommend you look for a tutorial.
I did figure it out but, I couldn't find any actual class tutorial so...
I wrote one: My class tutorial: Click Here
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks