wow, I really DID go around in circles... I already asked about this and then just now made a request about just the exact same thing. OK, so, I'll be scouring over that coding to see what it can offer.
Okay, I think I see something that may allow me to do this... If I add something to the window edits and to the core script that related to mx and my, I can duplicate that statement to also give the same value to two variables, say $game_variables[100] and $game_variables[101], and then set up a common event that turns off walking and turns on 'event clicking' but then instead of event clicking, we just monitor to see if mouse.click occurs inside the barriers of our new game variables, like for instance, we can create a button picture at 40,100, and put GUI coordinates for variables [102](GUI X) variables [103](GUI X2) and variable [104](GUI Y) and variable [105](GUI Y2) and that picture is 64 wide and 90 tall. We can then check with either a script or through an parallel process that if the mouse position is greater than 40x, less than 104x, greater than 100y, and less than 190y, and then see if a click is done, then perform the action of the click.
Combined with say a text displayed at coordinates, a few variables, and a few icons in the text, we could create GUI buttons with relative ease. Does this make sense?
Seriously, would this work? and if so, how?
------------------------------------------------------------------------------------------------------------------------
Okay, so we can pass those variables by mouse.screen_x and mouse screen_y, and then create the variables of our button this way:
@game_variables[100] = mouse_screen.x
@game_variables[101] = mouse_screen.y
@game_variables[102] = 40
@game_variables[104] = 100
@game_variables[103] = @game_variables[102] + 64
@game_variables[105] = @game_variables[104] + 90
CONDITIONAL BRANCH:
If Variable[100] > Variable[102]
If Variable[100] < Variable[103]
If Variable [101] > Variable[104]
If Variable [101] < Variable[105]
If Mouse.click?(Left_Click) = TRUE
Call Common Event [001:This particular box clicked]
Close
Close
Close
Close
Okay, I think I see something that may allow me to do this... If I add something to the window edits and to the core script that related to mx and my, I can duplicate that statement to also give the same value to two variables, say $game_variables[100] and $game_variables[101], and then set up a common event that turns off walking and turns on 'event clicking' but then instead of event clicking, we just monitor to see if mouse.click occurs inside the barriers of our new game variables, like for instance, we can create a button picture at 40,100, and put GUI coordinates for variables [102](GUI X) variables [103](GUI X2) and variable [104](GUI Y) and variable [105](GUI Y2) and that picture is 64 wide and 90 tall. We can then check with either a script or through an parallel process that if the mouse position is greater than 40x, less than 104x, greater than 100y, and less than 190y, and then see if a click is done, then perform the action of the click.
Combined with say a text displayed at coordinates, a few variables, and a few icons in the text, we could create GUI buttons with relative ease. Does this make sense?
Seriously, would this work? and if so, how?
------------------------------------------------------------------------------------------------------------------------
Okay, so we can pass those variables by mouse.screen_x and mouse screen_y, and then create the variables of our button this way:
@game_variables[100] = mouse_screen.x
@game_variables[101] = mouse_screen.y
@game_variables[102] = 40
@game_variables[104] = 100
@game_variables[103] = @game_variables[102] + 64
@game_variables[105] = @game_variables[104] + 90
CONDITIONAL BRANCH:
If Variable[100] > Variable[102]
If Variable[100] < Variable[103]
If Variable [101] > Variable[104]
If Variable [101] < Variable[105]
If Mouse.click?(Left_Click) = TRUE
Call Common Event [001:This particular box clicked]
Close
Close
Close
Close
BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin