Mousie: The Mouse System
#59
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
[Image: AVvXsEga1vIr5Rx3FkoFbGo1OoMJAqgq6TeqcbpF...L3AWg=s752]

BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin
Reply }


Messages In This Thread
Mousie: The Mouse System - by DerVVulfman - 03-05-2008, 07:15 AM
RE: Mousie: The Mouse System - by Agckuu Coceg - 01-23-2011, 06:53 PM
RE: Mousie: The Mouse System - by NightOwl - 01-23-2011, 09:22 PM
RE: Mousie: The Mouse System - by Agckuu Coceg - 01-29-2011, 08:34 PM
RE: Mousie: The Mouse System - by MetalRenard - 01-29-2011, 08:48 PM
RE: Mousie: The Mouse System - by Agckuu Coceg - 01-29-2011, 10:46 PM
RE: Mousie: The Mouse System - by DerVVulfman - 01-30-2011, 04:39 AM
RE: Mousie: The Mouse System - by Kristovski - 01-30-2011, 08:24 PM
RE: Mousie: The Mouse System - by DerVVulfman - 01-31-2011, 04:51 AM
RE: Mousie: The Mouse System - by DerVVulfman - 06-15-2011, 07:09 AM
RE: Mousie: The Mouse System - by MetalRenard - 06-15-2011, 09:29 AM
RE: Mousie: The Mouse System - by DerVVulfman - 06-16-2011, 04:21 AM
RE: Mousie: The Mouse System - by DerVVulfman - 06-17-2011, 04:46 AM
RE: Mousie: The Mouse System - by DerVVulfman - 10-03-2012, 03:20 AM
RE: Mousie: The Mouse System - by DerVVulfman - 10-04-2012, 03:41 AM
RE: Mousie: The Mouse System - by LilyKnight - 03-16-2012, 02:37 AM
RE: Mousie: The Mouse System - by DerVVulfman - 03-16-2012, 04:25 AM
RE: Mousie: The Mouse System - by Keyren - 04-12-2012, 12:37 PM
RE: Mousie: The Mouse System - by DerVVulfman - 04-12-2012, 10:44 PM
RE: Mousie: The Mouse System - by Keyren - 04-13-2012, 10:41 AM
RE: Mousie: The Mouse System - by DerVVulfman - 04-14-2012, 03:15 AM
RE: Mousie: The Mouse System - by JayRay - 11-01-2012, 03:53 AM
RE: Mousie: The Mouse System - by DerVVulfman - 11-01-2012, 06:19 AM
RE: Mousie: The Mouse System - by JayRay - 02-01-2014, 03:58 PM
RE: Mousie: The Mouse System - by JayRay - 02-04-2014, 06:57 PM
RE: Mousie: The Mouse System - by MechanicalPen - 02-04-2014, 11:48 PM
RE: Mousie: The Mouse System - by JayRay - 02-05-2014, 04:36 PM
RE: Mousie: The Mouse System - by MechanicalPen - 02-05-2014, 06:19 PM
RE: Mousie: The Mouse System - by JayRay - 02-14-2014, 07:38 PM
RE: Mousie: The Mouse System - by MechanicalPen - 02-14-2014, 08:48 PM
RE: Mousie: The Mouse System - by JayRay - 02-16-2014, 03:58 AM
RE: Mousie: The Mouse System - by DerVVulfman - 07-19-2015, 10:57 PM
RE: Mousie: The Mouse System - by yamina-chan - 07-19-2015, 11:18 PM
Mousie: The Mouse System - by InnerMobius - 12-06-2009, 10:07 AM
Mousie: The Mouse System - by DerVVulfman - 12-06-2009, 04:18 PM
Mousie: The Mouse System - by explocion200 - 12-06-2009, 06:44 PM
Mousie: The Mouse System - by DerVVulfman - 12-06-2009, 06:53 PM
Mousie: The Mouse System - by explocion200 - 12-06-2009, 07:02 PM
Mousie: The Mouse System - by DerVVulfman - 12-06-2009, 07:10 PM
Mousie: The Mouse System - by explocion200 - 12-06-2009, 07:15 PM
Mousie: The Mouse System - by InnerMobius - 12-06-2009, 08:31 PM
Mousie: The Mouse System - by goth1sniper - 02-06-2010, 03:40 PM
Mousie: The Mouse System - by DerVVulfman - 02-06-2010, 06:53 PM
Mousie: The Mouse System - by goth1sniper - 02-06-2010, 10:41 PM
Mousie: The Mouse System - by Ace - 02-07-2010, 12:45 AM
Mousie: The Mouse System - by goth1sniper - 02-07-2010, 07:15 PM
Mousie: The Mouse System - by Ace - 02-07-2010, 07:38 PM
Mousie: The Mouse System - by DerVVulfman - 02-08-2010, 05:51 AM
Mousie: The Mouse System - by goth1sniper - 02-08-2010, 06:13 PM
Mousie: The Mouse System - by Ace - 02-08-2010, 06:23 PM
Mousie: The Mouse System - by DerVVulfman - 02-09-2010, 05:30 AM
Mousie: The Mouse System - by Makofanuo - 03-21-2010, 05:41 AM
Mousie: The Mouse System - by Norton - 04-07-2010, 08:31 AM
Mousie: The Mouse System - by DerVVulfman - 04-10-2010, 04:26 AM
Mousie: The Mouse System - by Neas - 05-02-2010, 10:34 PM
Mousie: The Mouse System - by DerVVulfman - 05-03-2010, 04:07 AM
Mousie: The Mouse System - by Neas - 05-03-2010, 03:04 PM
Mousie: The Mouse System - by Ace - 05-03-2010, 03:12 PM
Mousie: The Mouse System - by Neas - 05-03-2010, 05:53 PM
Mousie: The Mouse System - by DerVVulfman - 05-04-2010, 03:47 AM
Mousie: The Mouse System - by Neas - 05-04-2010, 12:15 PM
Mousie: The Mouse System - by DerVVulfman - 05-04-2010, 06:55 PM
Mousie: The Mouse System - by Neas - 05-04-2010, 07:41 PM
Mousie: The Mouse System - by trb - 05-30-2010, 03:00 PM
Mousie: The Mouse System - by DerVVulfman - 05-31-2010, 03:28 AM
Mousie: The Mouse System - by sakhawat21 - 05-31-2010, 09:14 AM
Mousie: The Mouse System - by trb - 05-31-2010, 03:12 PM
Mousie: The Mouse System - by DerVVulfman - 10-14-2010, 04:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The Wanderers: The Customizable Encounters System DerVVulfman 0 263 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Aleworks Input Mouse Sprite Add-On DerVVulfman 2 1,789 09-21-2023, 02:56 PM
Last Post: DerVVulfman
   MKXP Compatible Mouse Add-on DerVVulfman 1 1,397 08-30-2023, 08:54 PM
Last Post: kyonides
   Super Simple Vehicle System - Enhanced DerVVulfman 65 94,818 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,849 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 14,318 01-04-2020, 12:37 AM
Last Post: Pelip
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 255,883 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   DerVV's Simple Popup System DerVVulfman 4 12,242 10-08-2017, 04:53 PM
Last Post: DerVVulfman
   Melly-Mel's Calendar System DerVVulfman 23 43,635 12-02-2016, 04:31 AM
Last Post: DerVVulfman
   The Magey Mage's Spellbook System DerVVulfman 3 9,988 10-31-2016, 01:45 AM
Last Post: Noctis



Users browsing this thread: 12 Guest(s)