It looks like you're new here. If you want to get involved, click one of these buttons!
local bitmap1 = Bitmap.new(texture) local bitmap2 = Bitmap.new(region)
local bitmap1 = Bitmap.new(texture) bitmap1.texture = texture local bitmap2 = Bitmap.new(region) bitmap2.texture = region
Bitmap.__new = Bitmap.new function Bitmap.myNew(texture) self = Bitmap.__new(texture) self.texture = texture return self end Bitmap.new = Bitmap.myNew function Bitmap:getTexture() return self.texture end
Comments
You have two choices:
Create a property on your own