Hi all,
I recently have been trying to test my mobile app on a physical android rather than just the windows Gideros Player. My code runs fine on my computer with no errors, however when I tried to test it on the mobile device today, I received the following error: attempt to call method 'setAnchorPoint' (a nil value). I have run into these types of errors before while developing in lua, but since the same error did not occur on my computer I was wondering if this was a problem people were aware of? I have attached my code if it will help (error occurs on line 48), but I want to first make sure this problem is not common, or easily fixable. Thanks for any information you can provide!
EDIT: I just realized lines are not numbered in the attached file: i have attached a picture showing which line produces the error.
lua
lua
Comments
As far as I know there is no setAnchorPoint method in Sprite by default, but I think that you may use http://docs.giderosmobile.com/reference/gideros/Sprite/setAnchorPosition
Hmm, I must be because setAnchorPoint has been working on my computer Gideros player... I don't recall downloading it but I may have forgotten. Is there a way to incorporate this on my mobile device?
if you are using it you should have it in your project tree on the left of the gideros ide: I believe you should do nothing else to incorporate it, just make sure it's loaded at the beginning (at least before load.lua) in the "code dependencies/call order" tab.
Maybe the device is slower than the computer loading files.. just guessing