For example how do I use sprite.setPosition(x, y);
but only for x OR y instead of both?
I used sprite.setPosition(20, sprite.getPosition().y);
but i'd imagine thats not the most efficient way of doing it. Apologies again for the very noob question and its probably right in front of me but thanks in advanced.