Hi all,
I have a door which has position of X and Y and need these values to be stored as variables at the beginning of the layout so I can return the object to its initial position when moved - in other words, I need to remember the position so I can return it there when I need. I did:
local variable objectXvalue=0
local variable objectYvalue=0
then I created event:
system -> set value -> set objectXvalue to object.X
same with Y value. But nothing happens. When I return it to initial position it returns to x=0, y=0 (as set at the beginning of the layout). Seems like it is not assigning the value of object.X and object.Y to variables.
Any idea how to solve it?
Thanks