The anchor behavior cannot center sprites. Using events, I can center a sprite Horizontally Ok, but I cant do anything with it vertically, it just jumps around and goes a random Y, sometimes going off screen completely.
The code I am using is this:
Browser On resized : mylogo Set Y to ViewportTop("lobby") + 27
mylogo Set X to (ViewportLeft("lobby") + ViewportRight("lobby")) / 2
I want to fix the logo 27 pixels from the top of the screen. It just doesnt work.
Any ideas why? I'm sure I used to do it like this.
Note: I have set the origin of the logo sprite to be X in the center, Y at the top. (i.e. origin x=width/2, y=0)