Hola a todos :D,tengo una duda como de debe hacer para que el juego te pregunte algo ,tu escribas un color ,y ese sea el color del sprite, mi codigo es este:
[spoiler]
if room_exists(color_ball){
if get_string("¿Que color eliges? ","")=="blanco"
with(obj_ball){image_index=0}
if get_string("¿Que color eliges? ","")=="amarillo"
with(obj_ball){image_index=1}
if get_string("¿Que color eliges? ","")=="verde"
with(obj_ball){image_index=2}
if get_string("¿Que color eliges? ","")=="naranja"
with(obj_ball){image_index=3}
if get_string("¿Que color eliges? ","")=="azul"
with(obj_ball){image_index=4}
if get_string("¿Que color eliges? ","")=="rojo"
with(obj_ball){image_index=5}
if get_string("¿Que color eliges? ","")=="negro"
with(obj_ball){image_index=6}
if get_string("¿Que color eliges? ","")=="morado"
with(obj_ball){image_index=7}
if get_string("¿Que color eliges? ","")=="multicolor"
with(obj_ball){sprite_index=spr_ball_multicolor}
room_goto(room1)
}
[/spoiler]
Cuando le doy OK no cambia de room sigue ahi la pregunta . Como se deberia hacer , Por favor ayuda
Uso( :GM8:)
[spoiler]
if room_exists(color_ball){
if get_string("¿Que color eliges? ","")=="blanco"
with(obj_ball){image_index=0}
if get_string("¿Que color eliges? ","")=="amarillo"
with(obj_ball){image_index=1}
if get_string("¿Que color eliges? ","")=="verde"
with(obj_ball){image_index=2}
if get_string("¿Que color eliges? ","")=="naranja"
with(obj_ball){image_index=3}
if get_string("¿Que color eliges? ","")=="azul"
with(obj_ball){image_index=4}
if get_string("¿Que color eliges? ","")=="rojo"
with(obj_ball){image_index=5}
if get_string("¿Que color eliges? ","")=="negro"
with(obj_ball){image_index=6}
if get_string("¿Que color eliges? ","")=="morado"
with(obj_ball){image_index=7}
if get_string("¿Que color eliges? ","")=="multicolor"
with(obj_ball){sprite_index=spr_ball_multicolor}
room_goto(room1)
}
[/spoiler]
Cuando le doy OK no cambia de room sigue ahi la pregunta . Como se deberia hacer , Por favor ayuda
Uso( :GM8:)