Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsOK, so I'm making this game, and I have it so that the player flips when you press different directions. It works fine, but when I resize it, (I want to make it bigger) It gets messed up and squished/streched. So, my question is, how would I make the _xscale my CURRENT size, and not it's original.
Thanks in advance.
Don't click me. Please.
^ DON'T CLICK IT.
^ DON'T LISTEN TO THAT.
Thanks in advance.
if(
blah blah blah;
){
_xScale* (-1);
blah
} At 1/14/13 12:47 PM, GMR516 wrote: OK, so I'm making this game, and I have it so that the player flips when you press different directions. It works fine, but when I resize it, (I want to make it bigger) It gets messed up and squished/streched. So, my question is, how would I make the _xscale my CURRENT size, and not it's original.
Thanks in advance.
Very poorly worded, but I think I can see what you are saying.
So like for each of your directions, left/right, you have a line simmilar to:
whatever._xscale = 100;
//or
whatever._xscale = -100;
But you are scaling it up at some point before this so that you can have a bigger sprite.
so you want to swap directions relative to the current _xscale.
do just multiply it by -1 to swap directions.
whatever._xscale = whatever._xscale * -1 Don't click me. Please.
^ DON'T CLICK IT.
^ DON'T LISTEN TO THAT.