jejejej esto mola
como podras ver he vuelto a cambiar las teclas
8)
lastDirection=direction
keyW=keyboard_check(ord("W"))
keyS=keyboard_check(ord("S"))
keyA=keyboard_check(ord("A"))
keyD=keyboard_check(ord("D"))
keyQ=keyboard_check(ord("Q"))
keyE=keyboard_check(ord("E"))
keyShift=keyboard_check(vk_shift)
keySpace=keyboard_check(vk_space)
if(keyW){
speed=1
}
else{
if(keyS){
speed=-1
}
else{
speed=0
}
}
if(keySpace){
bala=instance_create(x,y,Bala)
bala.direction=direction
bala.image_angle=direction
}
if(keyQ){
motion_set(direction+90,1)
}
if(keyE){
motion_set(direction-90,1)
}
if(keyA){
direction += 1
speed = 1
}
y esto en el end
if(keyQ){
direction=lastDirection
}
if(keyE){
direction=lastDirection
}
he a?adido el
if(keyA){
direction += 1
speed = 1
}
pero no hace lo que quiero y he probado con image_angle y tampoco.
como podras ver he vuelto a cambiar las teclas
8)
lastDirection=direction
keyW=keyboard_check(ord("W"))
keyS=keyboard_check(ord("S"))
keyA=keyboard_check(ord("A"))
keyD=keyboard_check(ord("D"))
keyQ=keyboard_check(ord("Q"))
keyE=keyboard_check(ord("E"))
keyShift=keyboard_check(vk_shift)
keySpace=keyboard_check(vk_space)
if(keyW){
speed=1
}
else{
if(keyS){
speed=-1
}
else{
speed=0
}
}
if(keySpace){
bala=instance_create(x,y,Bala)
bala.direction=direction
bala.image_angle=direction
}
if(keyQ){
motion_set(direction+90,1)
}
if(keyE){
motion_set(direction-90,1)
}
if(keyA){
direction += 1
speed = 1
}
y esto en el end
if(keyQ){
direction=lastDirection
}
if(keyE){
direction=lastDirection
}
he a?adido el
if(keyA){
direction += 1
speed = 1
}
pero no hace lo que quiero y he probado con image_angle y tampoco.