Results 1 to 3 of 3

Thread: Assign a function to a Table???

                  
   
  1. #1
    DCEmu Newbie CT_Bolt's Avatar
    Join Date
    Mar 2006
    Location
    Somewhere in Space
    Posts
    39
    Rep Power
    0

    Question Assign a function to a Table???

    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:
    Code:
    AScrollingCanvas:Move(X, Y)
    Please Help.

    PS. If I didn't give enough information, plz just PM me.

  2. #2

    Default

    Come on man your suposed to know this, I recommend you look for a tutorial.

  3. #3
    DCEmu Newbie CT_Bolt's Avatar
    Join Date
    Mar 2006
    Location
    Somewhere in Space
    Posts
    39
    Rep Power
    0

    Wink I do now

    I did figure it out but, I couldn't find any actual class tutorial so...
    I wrote one: My class tutorial: Click Here

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •