OOP questions (assigning an image to the object and movement)

Over the last few days I have been reading and re-reading the OOP tutorial found on develephant: http://www.develephant.net/an-rpg-themed-oop-design-pattern-for-corona-sdk-part-1/

I have come to the conclusion that I’m not experienced enough to understand why it works, but I have a decent concept of how to add to it and make it function for what I need it to do.

My question is when it comes to OOP and getting a “character class” to operate like the simpler plain objects…

normally I would do something like this

local object = displayNewImage …

object.x = 100

object.y = 500

etc

etc

I’m not quite sure how to accomplish this because the usual object.x & object.y don’t seem to work. (ive tried self.x & self.y but no success).

Most of my struggles have been trying to figure out transition to. Does anyone have any answers on how to get this to work?

Sorry I don’t have any code to show, Im at work :frowning: stupid work

Here is another great OOP guide in case you haven’t seen it:  http://davebollinger.org/corona-quick-thought-survey-of-lua-oop-patterns/

Thanks man, I’ll read that one later tonight

Here is another great OOP guide in case you haven’t seen it:  http://davebollinger.org/corona-quick-thought-survey-of-lua-oop-patterns/

Thanks man, I’ll read that one later tonight