Comunidad Game Maker

Ayuda => Preguntas y respuestas => Mensaje iniciado por: oligofrenico en Octubre 24, 2013, 09:55:52 AM

Título: Error al exportar juego a .apk
Publicado por: oligofrenico en Octubre 24, 2013, 09:55:52 AM
Hola señores/as , les comento mi duda.La al exportar mi juego a android, formato apk todos los controles no funcionan , es decir no puedo básicamente ni moverme ni nada en mi juego con mi personaje, me gustaría saber como puedo arreglar eso, un saludo y gracias
Título: Re:Error al exportar juego a .apk
Publicado por: eams1986 en Octubre 24, 2013, 06:49:12 PM
mira viejo tienes que agregar  key virtual osea teclas virtuales
Título: Re:Error al exportar juego a .apk
Publicado por: eams1986 en Octubre 24, 2013, 08:02:38 PM
crea un ob_control y luego pon esto

create :  esto  gui_width=980
gui_height=480.

draw : display_set_gui_size(gui_width,gui_height)


global.vkright = YoYo_AddVirtualKey( gui_width-750, gui_height-74, 64, 64, vk_right );


global.vkleft = YoYo_AddVirtualKey( gui_width-900, gui_height-74, 64, 64, vk_left );


global.vkup = YoYo_AddVirtualKey( gui_width-120, gui_height-74, 64, 64, vk_up );

ob_player :  en step  pon esto  if(place_free(x,y+1)){gravity=1}else{gravity=0}
if(Estado=0)
{
if(keyboard_check(vk_up))&&(vspeed=0){Estado=1 vspeed=-15}
}

if keyboard_check(vk_left) {
    x-=5;
}
if keyboard_check(vk_right) {
    x+=5;
}


draw_sprite(spr_right,-1,gui_width-202, gui_height-74);

draw_sprite(spr_left,-1,gui_width-202, gui_height-74);

draw_sprite(spr_up,-1,gui_width-202, gui_height-74);