Oh my gosh! My character won't move left and right! Any reasons why? I did everything correctly...
Moving Left And Right?
Started by Mathguy2, Jan 31 2009 03:42 AM
5 replies to this topic
#1
Posted 31 January 2009 - 03:42 AM
#2
Posted 31 January 2009 - 03:50 AM
What else is new!My character won't move left and right!
Yes look below!Any reasons why?
No you didn't, that's why!I did everything correctly...
Please post more information so we can be more helpful.
#3
Posted 31 January 2009 - 04:15 AM
if it isn't working then you didn't do it correctly. All game maker is doing is converting all of your code into 0s and 1s, nothing more so game maker didn't make the mistake.Oh my gosh! My character won't move left and right! Any reasons why? I did everything correctly...
#4
Posted 31 January 2009 - 04:19 AM
if (keyboard_check(vk_left)) x-=2; if (keyboard_check(vk_right)) x+=2; if (keyboard_check(vk_up)) y-=2; if (keyboard_check(vk_down)) y+=2;There now you're object will move
#5
Posted 31 January 2009 - 04:22 AM
if (keyboard_check(vk_left)) {x-=2}else
if (keyboard_check(vk_right)) {x+=2}else
if (keyboard_check(vk_up)) {y-=2}else
if (keyboard_check(vk_down)) {y+=2}i personally like it with the else statements, so there is no diagonal movement =)
#6
Posted 31 January 2009 - 10:28 PM
Guess I did make a mistake. Sorry I'm just a beginner anyways. Thanks for helping me guys.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











