Changing the lock state of a sprite