SOLVED [1.4.9999] need some help with player input

woods

Member
am working on allowing the player to input their name and display on the gui in each of their views..
i have the whole system down except one thing.
the dialog box that pops up is behind everything... if i click the center of the screen, it will pop out to the front and functions normally.

how do i get that to show up on top of everything else?


while this does function its just a bit too..... win98 ish for me.. with the dialog box and all that.
i think i would rather have this type of thing embedded in the game window instead of a dialog box popup. - but one thing at a time right? ..get it to work and THEN clean it up so it looks nice.

Code:
obj_start (controller in starting room)

create event:

msg_P1 = get_string_async("What's your name?","Player 1");
msg_P2 = get_string_async("What's your name?","Player 2");




asynchronous dialog event:

var i_d = ds_map_find_value(async_load, "id");
if i_d == msg_P1
   {
   if ds_map_find_value(async_load, "status")
      {
      if ds_map_find_value(async_load, "result") != ""
         {
         global.Name_P1 = ds_map_find_value(async_load, "result");
         }
      }
   }
 
//
var i_d = ds_map_find_value(async_load, "id");
if i_d == msg_P2
   {
   if ds_map_find_value(async_load, "status")
      {
      if ds_map_find_value(async_load, "result") != ""
         {
         global.Name_P2 = ds_map_find_value(async_load, "result");
         }
      }
   }


edit:
found a nice little walk thru
took me a minute to adjust it to my project.. had a bit of a time with the split screen views
 
Last edited:
Top