You don't need to place specific object to make that, you just can make a loop with rendering of your texture at player's center by formula:
texture.x = player.x+(player.w/2) - (texture.w/2)
texture.y = player.y+(player.h/2) - (texture.h/2)
or add/subtract some number if you wish offsetted render or modify -1 or +1 dependent to actual direction if need, etc.
I.e.:
Code: Select all
local texture = Graphics.loadImage("darklight.png")
local player = Player(1)
function onLoop()
local x = player.x+(player.width/2) - (texture.width/2)
local y = player.y+(player.height/2) - (texture.height/2)
Graphics.drawImage(texture, x, y)
end