Key Press Check?
#1
Posted 01 February 2008 - 04:13 PM
#2
Posted 01 February 2008 - 04:16 PM
keyboard_check_press()
#3
Posted 01 February 2008 - 04:20 PM
#4
Posted 01 February 2008 - 04:21 PM
#5
Posted 01 February 2008 - 04:23 PM
it said that D was an unknown variable?
#6
Posted 01 February 2008 - 04:26 PM
Once again, check the manual.
#7
Posted 01 February 2008 - 04:40 PM
keyboard_check_pressed("D")
What I am making is a little guy who walks back and forth
A = left D = Right
Normally if you release key A you would stop walking left. What I need is if you release key A, but are still pushing key D then the guy will start walking right. does that makes sence? thanks for the help.
#8
Posted 01 February 2008 - 04:42 PM
keyboard_check_pressed(ord("D"))
#9
Posted 01 February 2008 - 04:46 PM
#10
Posted 01 February 2008 - 04:47 PM
I tried that and it still doesn't seem to work. Maby I am just missing something.
in the step event
if keyboard_check_direct(ord("D"))
{
x+=4
}
if keyboard_check_direct(ord("A"))
{
x-=4
}
#11
Posted 01 February 2008 - 04:48 PM
its:
keyboard_check_pressed(ord("D"))
It MUST be in caps (the letter)
#12
Posted 01 February 2008 - 04:48 PM
#13
Posted 01 February 2008 - 04:48 PM
#14
Posted 01 February 2008 - 04:51 PM
#15
Posted 07 February 2008 - 01:09 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











