Octubre 25, 2010, 11:54:43 PM Ultima modificación: Octubre 26, 2010, 12:22:04 AM por codex
hola

Estoy haciendo un juego de estrategia estilo starcraft y tengo un problema
estoy trabajando en la "GUI" intento hacer que un objeto siga la view y se pueda interactuar con el al pulsar el bot?n izquierdo del mouse.
Citar
/draw event

if Peon.seleccionado=1
x = view_xview+352
y = view_yview+10
draw_sprite_ext(spr_boton,-1,x+160,y+590,image_xscale,image_yscale,image_angle,image_blend,image_alpha)

if mouse_check_button_pressed (vk_left)
draw_sprite_ext(spr_botonP,-1,x+160,y+590,image_xscale,image_yscale,image_angle,image_blend,image_alpha)

Con este c?digo consigo que siga a la view pero no pasa nada cuando pulso el bot?n izquierdo, ?podr?ais ayudarme?

#1 Octubre 26, 2010, 12:20:58 AM Ultima modificación: Octubre 26, 2010, 01:34:21 PM por codex
Cita de: codex en Octubre 25, 2010, 11:54:43 PM
hola
ya encontr? el fallo.... fue un fallo tonto por no fijarme bien a sin que perdonar ya, ya esta solucionado
/draw event
if Peon.seleccionado=1
x = view_xview+352
y = view_yview+10
draw_sprite_ext(spr_boton,-1,x+160,y+590,image_xscale,image_yscale,image_angle,image_blend,image_alpha)

if mouse_check_button_pressed (mb_left)   <---------- ya encontre el fallo puse vk_left cuando tenia ke ser mb_left...
draw_sprite_ext(spr_botonP,-1,x+160,y+590,image_xscale,image_yscale,image_angle,image_blend,image_alpha)