Thanks!!!!
Edited by DcoldSaviour77, 11 March 2012 - 04:02 PM.
Posted 11 March 2012 - 12:18 PM
Edited by DcoldSaviour77, 11 March 2012 - 04:02 PM.
Posted 11 March 2012 - 12:25 PM
Posted 11 March 2012 - 12:48 PM
value = show_message_ext("Choose a character!", "Mario", "Link", "Kirby")
if value = 0 show_message("You did not choose a character")
if value = 1 instance_create(0, 0, objMario)
if value = 2 instance_create(0, 0, objLink)
if value = 3 instance_create(0, 0, objKirby)show_message_ext("Do you like to keep playing?", "YEAH!", "No thanks", "")
Edited by filulilus, 11 March 2012 - 12:51 PM.
Posted 11 March 2012 - 01:17 PM
Yes, that's just what I was trying to use. Thanks!!! Only three more tiny questions now. Will there always be a value of 0 and is it possible to change the buttons to choose a response? Does the player have hit the number 1,2,3,or 0 for a response?I'm ganna go ahead and guess that you use show_message_ext(str,but1,but2,but3)
The function returns a value between 0 and 3. 0 if <Esc> is pressed and 1 to 3 if any of the buttons are pressed.
You can use it like this:value = show_message_ext("Choose a character!", "Mario", "Link", "Kirby") if value = 0 show_message("You did not choose a character") if value = 1 instance_create(0, 0, objMario) if value = 2 instance_create(0, 0, objLink) if value = 3 instance_create(0, 0, objKirby)
If you don't want to use any of the buttons you can just pass "" as a argument.show_message_ext("Do you like to keep playing?", "YEAH!", "No thanks", "")
Posted 11 March 2012 - 02:02 PM
It will allways return a 0 if you press <Esc> but you can change it efter it's been returned.Yes, that's just what I was trying to use. Thanks!!! Only three more tiny questions now. Will there always be a value of 0 and is it possible to change the buttons to choose a response? Does the player have hit the number 1,2,3,or 0 for a response?
if value = 0 value = 1
show_message_ext('Text', '&Hello', '&1337', 'Hello &again')button 1 will respond to "h"Edited by filulilus, 11 March 2012 - 02:04 PM.
Posted 11 March 2012 - 02:13 PM
Awsome!! Thanks a lot. I really appreciate your assistance!!!It will allways return a 0 if you press <Esc> but you can change it efter it's been returned.
Yes, that's just what I was trying to use. Thanks!!! Only three more tiny questions now. Will there always be a value of 0 and is it possible to change the buttons to choose a response? Does the player have hit the number 1,2,3,or 0 for a response?if value = 0 value = 1
You meen key and not mouse presses?
Yeah, simply add a "&" infront of the number or letter you like to use.show_message_ext('Text', '&Hello', '&1337', 'Hello &again')button 1 will respond to "h"
button 2 will respond to "1"
button 3 will respond to "a"
P.S
You can find all this information in the Game maker manual which can be found in Game maker!
D.S
Posted 11 March 2012 - 02:13 PM
Awsome!! Thanks a lot. I really appreciate your assistance!!!It will allways return a 0 if you press <Esc> but you can change it efter it's been returned.
Yes, that's just what I was trying to use. Thanks!!! Only three more tiny questions now. Will there always be a value of 0 and is it possible to change the buttons to choose a response? Does the player have hit the number 1,2,3,or 0 for a response?if value = 0 value = 1
You meen key and not mouse presses?
Yeah, simply add a "&" infront of the number or letter you like to use.show_message_ext('Text', '&Hello', '&1337', 'Hello &again')button 1 will respond to "h"
button 2 will respond to "1"
button 3 will respond to "a"
P.S
You can find all this information in the Game maker manual which can be found in Game maker!
D.S
Posted 11 March 2012 - 04:01 PM
Posted 11 March 2012 - 07:42 PM
message_button(sprMessageButton)in the create event.
Edited by filulilus, 11 March 2012 - 07:42 PM.
0 members, 0 guests, 0 anonymous users