Bueno primero que nada saludos y ahora les aclaro mi problema, lo que ocurre es que yo muevo mi personaje con las flechas izq/der, y no se si les a pasado que al presionarlas al mismo tiempo el personaje se queda quieto y reproduciendo el sprite del personaje caminando. Me gustaria saber como solucionarlo.
TECLAS:
FLECHA IZQ=MOVERSE A LA IZQUIERDA
FLECHA DER=MOVERSE A LA DERECHA
FLECHA ABAJO=AGACHARSE
A=DISPARAR
S=SALTAR
W=ESPADAZO
Les dejo el link del exe:http://www.megaupload.com/?d=FQI4K39G
La variable swcaminar no influye en nada.
En el event keypress right:
if swcaminar=0 and in_air=0 and place_free(x+3,y) and place_meeting(x,y+1,obj_piso){
swcaminar=1
image_index=0
image_speed=0.8
sprite_index=spr_shadow_caminando
image_xscale=1
}
x+=3
En el event keypress left:
if swcaminar=0 and in_air=0 and place_free(x-3,y) and place_meeting(x,y+1,obj_piso){
swcaminar=1
image_index=0
image_speed=0.8
sprite_index=spr_shadow_caminando
image_xscale=-1
}
x-=3
TECLAS:
FLECHA IZQ=MOVERSE A LA IZQUIERDA
FLECHA DER=MOVERSE A LA DERECHA
FLECHA ABAJO=AGACHARSE
A=DISPARAR
S=SALTAR
W=ESPADAZO
Les dejo el link del exe:http://www.megaupload.com/?d=FQI4K39G
La variable swcaminar no influye en nada.
En el event keypress right:
if swcaminar=0 and in_air=0 and place_free(x+3,y) and place_meeting(x,y+1,obj_piso){
swcaminar=1
image_index=0
image_speed=0.8
sprite_index=spr_shadow_caminando
image_xscale=1
}
x+=3
En el event keypress left:
if swcaminar=0 and in_air=0 and place_free(x-3,y) and place_meeting(x,y+1,obj_piso){
swcaminar=1
image_index=0
image_speed=0.8
sprite_index=spr_shadow_caminando
image_xscale=-1
}
x-=3