Attaching one actor to another

I've searched the forums and also checked out some demos but I'm missing something here. I want a glow to follow my player actor. The player is currently controlled by tilting the accelerometer. Then I added this to the player:
Constrain Attribute game.OffsetX(my integer) to Self.Position.X
Constrain Attribute game.OffsetY(my integer) to Self.Position.Y
Which I thought would sample where the actor is(?).
Then I added this onto my glow, thinking it would move based on the player actor since I flipped the attributes:
Constrain Attribute Self.Position.X to game.OffsetX
Constrain Attribute Self.Position.Y to game.OffsetY
I'm a GS newb but this looked like the correct method from the demos. Any assistance in my dumbassness would be appreciated.
Constrain Attribute game.OffsetX(my integer) to Self.Position.X
Constrain Attribute game.OffsetY(my integer) to Self.Position.Y
Which I thought would sample where the actor is(?).
Then I added this onto my glow, thinking it would move based on the player actor since I flipped the attributes:
Constrain Attribute Self.Position.X to game.OffsetX
Constrain Attribute Self.Position.Y to game.OffsetY
I'm a GS newb but this looked like the correct method from the demos. Any assistance in my dumbassness would be appreciated.

Comments
http://www.youtube.com/user/GameSaladCookbook#p/u/47/JnlxvMlPG-k
hope it does and good luck but I am not sure that it is any different to your first attempt...
kipper
cheers kipper