Error msg - Need help interpreting.

Hello. I am using lua glider for my IDE. I got this error -

ERROR: object:setReferencePoint() is only available in v1Compatibility mode. Use anchor points instead.

I know it is telling me that I am using version 2 of the IDE, and the command is available in version 1…But, what is an “anchor point”? :blink:

Thanks for any help.

that’s a corona error not a glider error
you need to use object.anchorX and object.anchorY instead of setReferencePoint

See: https://coronalabs.com/blog/2013/10/15/tutorial-anchor-points-in-graphics-2-0/

Rob

Or you could require this file to stop you having to change all of your "setReferencePoint"s (if you already have lots of them, if you are just starting the project then you may as well just change them all now):

http://developer.coronalabs.com/code/continue-using-setreferencepoint-set-new-anchor-points-graphics20

that’s a corona error not a glider error
you need to use object.anchorX and object.anchorY instead of setReferencePoint

See: https://coronalabs.com/blog/2013/10/15/tutorial-anchor-points-in-graphics-2-0/

Rob

Or you could require this file to stop you having to change all of your "setReferencePoint"s (if you already have lots of them, if you are just starting the project then you may as well just change them all now):

http://developer.coronalabs.com/code/continue-using-setreferencepoint-set-new-anchor-points-graphics20