|
Dialog
May 12, 2004 17:49:22 GMT -5
Post by Xenith on May 12, 2004 17:49:22 GMT -5
Questions about dialog 1).How do you get rid of the crummy looking dialog box in gm? 2).Do we have to design our own textboxes? 3).I dont want to download and use somebody elses engines so i need to know the basics before i attempt this. 4). why did i right down a number 3 if it wasn't a question?
|
|
|
Dialog
May 12, 2004 19:58:00 GMT -5
Post by IsmAvatar on May 12, 2004 19:58:00 GMT -5
1)
2) Only if you want a textbox beyond that in which GM is capable of.
3) See 1 and 2
4) right down? wouldn't that be diagonal? Now that's just downright silly.
|
|
|
Dialog
May 12, 2004 20:05:31 GMT -5
Post by Xenith on May 12, 2004 20:05:31 GMT -5
sorry i meant write down
|
|
|
Dialog
May 13, 2004 16:40:24 GMT -5
Post by IsmAvatar on May 13, 2004 16:40:24 GMT -5
i was playing with your words, no need to correct yourself. Did I help or not?
|
|
|
Dialog
Aug 11, 2004 14:49:44 GMT -5
Post by Xenith on Aug 11, 2004 14:49:44 GMT -5
thanks i'll be in need of these soon, i've been having trouble drawing my guy's hp on the top of the screen the code is something like this
draw_text (view_left[0] + x,view_top[0] + y,"HP" +global.hit_points)
the problem is i can't figure out how to have a string (HP) and a variable ( global.hit_points ) in the same draw function, so i'd imagine calling out variables in a dialogue system would be really painful for me
|
|
|
Dialog
Aug 11, 2004 15:23:07 GMT -5
Post by IsmAvatar on Aug 11, 2004 15:23:07 GMT -5
the reason is because show_message requires a string, and global.hit_points sounds like an integer. You need to convert it to an integer, which is much simpler than you'd think.
draw_text(view_left,view_top,"HP: "+string(global.hit_points))
note the string() function. also note, arrays with index 0 may be left out. view_left[0] is the same as view_left my_array[0,0] is the same as my_array[0] is the same as my_array Though it is good programming practice to include the array index.
|
|