It looks like you're new here. If you want to get involved, click one of these buttons!
self.lightSwitch1 = LightSwitch.new(pack1, 0, 0, items) local function switchTouch(target, event) if target:hitTestPoint(event.x, event.y) then if (target == lightSwitch1) then print('yo') end |
Comments
I was missing self. before lightSwitch1
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975