M
Mallard8
Guest
Hi again,
I have a sprite that faces and walks right using (vk_right)
Do I need to create another sprite to walk and face left or can I just mirror the same sprite?
That was the original question before I had a think about it and looked at the Help section.
Now the question is this, I can get the sprite to mirror using this code
if (keyboard_check(vk_right)) x += 4 image_xscale = 1; // Sprite walk and face Right
if (keyboard_check(vk_left)) x -= 4 image_xscale = - 1; // Sprite walk and face Left
Sprite faces left before I even hit a key and doesn't mirror back right no matter what I try
ie:
image_xscale = 0
image_xscale = 1
image_xscale = +1
Or having just
if (keyboard_check(vk_right)) x += 4
I have a sprite that faces and walks right using (vk_right)
Do I need to create another sprite to walk and face left or can I just mirror the same sprite?
That was the original question before I had a think about it and looked at the Help section.
Now the question is this, I can get the sprite to mirror using this code
if (keyboard_check(vk_right)) x += 4 image_xscale = 1; // Sprite walk and face Right
if (keyboard_check(vk_left)) x -= 4 image_xscale = - 1; // Sprite walk and face Left
Sprite faces left before I even hit a key and doesn't mirror back right no matter what I try
ie:
image_xscale = 0
image_xscale = 1
image_xscale = +1
Or having just
if (keyboard_check(vk_right)) x += 4