Comunidad Game Maker

Ayuda => Preguntas y respuestas => Mensaje iniciado por: Genesis en Marzo 29, 2010, 09:01:20 PM

Título: Poru?que no funxciona veanlo porfavor!
Publicado por: Genesis en Marzo 29, 2010, 09:01:20 PM
if keyboard_check("W") y-=5
if keyboard_check("A") x-=5
if keyboard_check("S") y+=5
if keyboard_check("D") x+=5


tengo algo mal, deprnto en la tecla con estas comillas" o no c mandenme algo k sirva oc omo pongo esas teclas en codigo


gracias
Título: Re: Poru?que no funxciona veanlo porfavor!
Publicado por: Ruisu~ en Marzo 29, 2010, 09:07:05 PM
pon un titulo mas revelante -w- y tienes que poner en ves de "W" pones ord('W') siempre en mayuscula, eso es todo
Título: Re: Poru?que no funxciona veanlo porfavor!
Publicado por: soccer2008 en Marzo 29, 2010, 11:30:01 PM
if keyboard_check(ord('W')) then {}
else
if keyboard_check(ord('S')) then {}

//strafe
if keyboard_check(ord('A')) then {}
else
if keyboard_check(ord('D')) then {}


saludos XD XD XD