Coordinates in a module doesn't work.

I have a utility module that contains some basic constants for scene coordinates:

local M = {} local centerX  = display.contentCenterX local centerY  = display.contentCenterY return M

but when I try to use them in a scene it doesn’t work, the imageRect stays at the original point( top left):

local utils = require("utils") \<\<- name of the file

&nbsp; &nbsp;&nbsp; player.x = utils.centerX &nbsp; &nbsp; player.y = utils.centerY

But it works If I entered the values directly to the (x,y) properties of the imageRect:

&nbsp; &nbsp;&nbsp; player.x = display.contentCenterX &nbsp; &nbsp; player.y = display.contentCenterY

Why doesn’t it work?

local M = {} M.centerX = display.contentCenterX M.centerY = display.contentCenterY return M

Silly mistake :wacko: , thank you.

NP, YW, carry on and happy coding.

local M = {} M.centerX = display.contentCenterX M.centerY = display.contentCenterY return M

Silly mistake :wacko: , thank you.

NP, YW, carry on and happy coding.