Hey all. Having some issues with sceneManager. I have a class called startScene and it's code is as follows...
startScene = Core.class(Sprite)
function startScene:test(x, y, w, h)
print(x)
print(y)
print(w)
print(h)
end
function startScene:init()
self.test(1,2,3,4)
end
Now when the code runs the output is as follows..
2
3
4
nil
Now what the heck!? I am expecting the output to be..
1
2
3
4
can anyone explain (the obvious most likely) what is going wrong?
Comments
self:test(1,2,3,4)
Likes: antix
Now please excuse me while I go and mash my head against a brick wall for an hour or two )
Likes: SinisterSoft
Likes: SinisterSoft, antix
Likes: antix
https://deluxepixel.com
It would be good if the Gideros Studio had some better syntax checking stuff. Using Visual Studio makes you SO DAMN LAZY since it's auto-correcting and refactoring everything on the fly
Likes: SinisterSoft