1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GMS 2 Easy User Interfaces?

Discussion in 'Programming' started by Smallmak, Jul 2, 2019.

  1. Smallmak

    Smallmak Member

    Joined:
    May 28, 2019
    Posts:
    16
    Normally when I make a user interface I divide the gui into a grid and then track the players mouse and if it is over the specific area and they click I run an a script or an if statement or something. but this is all a lot of work for something that seems pretty simple. I understand that that is often the case with coding but I was wondering if anyone has found a simpler or easier way to make a user interface?
     
  2. samspade

    samspade Member

    Joined:
    Feb 26, 2017
    Posts:
    2,060
    Depends on how complicated it is and what you want to do. In my current project (see link) I just use buttons objects with a single parent that handles all of the 'button' code and a child that has user evnet 0 for what it does. It is incredibly easy to set up and handle.

    The downside to this is that then you can't use keyboard or gamepad without essentially implementing a grid system on top of the button system. This isn't hard, but it isn't any easier than doing the grid system in the first place.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice