Hi guys,
I just started Corona SDK and tried to create a rectangle using this code:
local myRec = display.newRect(10, 100, 200, 200)
but the code doesn’t work as it support to. The first two params are for X and Y of top left corner of rectangle. So in this case, the top left corner should be 10 pixel to left, and 100 pixel down. But please see screenshot I attached, it’s not the way it should be.
Should I change anything in my setting? I am using Lua Glider as my editor.
Also, why the Width and Height is not 200 px ? this should be so simple but please help me what is wrong with this code I am missing something??
Thank you so much