Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
SceneManager Issue — Gideros Forum

SceneManager Issue

antixantix Member
edited April 2015 in General questions
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

Sign In or Register to comment.