T
tavo
Guest
Hi new guy here. long time forum stalker, (lol)
I recently made a game but I want english and spanish lenguage options
here is an example hw my dialogues work.....
here is the code for the dialogue boxes
obj_naza_words
///////create event.////////
text1 = string(" ERROR ERROR ,")
text2 = string(" ¡NOO! ACASO TODA LA MIS ROLAS# DEL ARES QUE BAJE A SU# DISCO DURO LO ALENTO.")
text3 = string(" ERES UN COMPLETO IDIOTA.")
talk = 1
global.text = true
out = string("")
spd = 0
//////step event//////////
////talk
if talk = 1{
out = string_copy (text1,1,spd)
spd +=0.5
}
if talk = 2{
out = string_copy (text2,1,spd)
spd +=1
}
if talk = 3{
out = string_copy (text3,1,spd)
spd +=1
}
var platica = keyboard_check_pressed(vk_space);
if gamepad_is_connected(0){
platica = gamepad_button_check_pressed(0,gp_face3);
}
if platica{
talk +=1
spd = 0
}
if talk > 3
instance_destroy();
/////draw event
draw_set_font(font_start)
draw_set_valign(fa_top)
draw_set_halign (fa_left)
if talk = 1{
draw_sprite(spr_naza,2,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
if talk = 2{
draw_sprite(spr_naza,5,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
if talk = 3{
draw_sprite(spr_naza,0,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
/////destroy event
global.text = false
I want to have an option to change the text strings in the create event for example
text3 = string(" ERES UN COMPLETO IDIOTA.")
have an option in english to say something like this
text3 = string(" You're a complete IDIOT!!!!")
iM KINDA new using game maker, thanks in advance.
I recently made a game but I want english and spanish lenguage options
here is an example hw my dialogues work.....
here is the code for the dialogue boxes
obj_naza_words
///////create event.////////
text1 = string(" ERROR ERROR ,")
text2 = string(" ¡NOO! ACASO TODA LA MIS ROLAS# DEL ARES QUE BAJE A SU# DISCO DURO LO ALENTO.")
text3 = string(" ERES UN COMPLETO IDIOTA.")
talk = 1
global.text = true
out = string("")
spd = 0
//////step event//////////
////talk
if talk = 1{
out = string_copy (text1,1,spd)
spd +=0.5
}
if talk = 2{
out = string_copy (text2,1,spd)
spd +=1
}
if talk = 3{
out = string_copy (text3,1,spd)
spd +=1
}
var platica = keyboard_check_pressed(vk_space);
if gamepad_is_connected(0){
platica = gamepad_button_check_pressed(0,gp_face3);
}
if platica{
talk +=1
spd = 0
}
if talk > 3
instance_destroy();
/////draw event
draw_set_font(font_start)
draw_set_valign(fa_top)
draw_set_halign (fa_left)
if talk = 1{
draw_sprite(spr_naza,2,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
if talk = 2{
draw_sprite(spr_naza,5,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
if talk = 3{
draw_sprite(spr_naza,0,view_xview[0],view_yview[0]+200)
draw_set_color(c_white)
draw_text(view_xview[0], view_yview[0]+200, out)
}
/////destroy event
global.text = false
I want to have an option to change the text strings in the create event for example
text3 = string(" ERES UN COMPLETO IDIOTA.")
have an option in english to say something like this
text3 = string(" You're a complete IDIOT!!!!")
iM KINDA new using game maker, thanks in advance.