Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Mouse coordinates are recorded in variables

Okay heres the deal,
I need a script which uses variables to record the coordinates for the mouse.

Why this script would be useful:

this script will be combined with Aleworks Input Module and would allow the user to make events
which have click-able pictures in them by using conditional branches,after this script comes out you can do virtually anything with the mouse.

this would be very easy because the formula to make click-able pictures would work like this:

Make your new event have a Parallel Process trigger

then put a picture on the screen.
after that go to it's bottom right
and top left corners,

after going to a corners press
F9 to see the coordinates in Variables

now put the coordinates into branches:
X from right of picture: Lesser or equal to,
X from left of picture :Greater or equal to,
Y on top of picture: Lesser or equal to,
Y on bottom of picture:Greater or equal to,
and Make a branch for the left click action

this step is not need but you could choose to put a"Clicked" version of the picture                                                                                  or a clicked sound effect bellow the branches.

and after all that put anything bellow this and any action you want will be activated by clicking a picture

This must be Compatible with:
Full screen, Aleworks Input Module, and Super Simple Mouse System by lambchop

This is a really easy request so please help out  :thumb:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top