GameMaker Studio 2 Tutorial [ADVANCED] - Alternate main menu button selection - [Episode #5 Part B]
Subscribe: ►
In today's tutorial what I cover is how you can configure the existing button system we set up in part 5 to use more of a controller type input. This involves checking the 'HoverValue' variable contained in both the obj_button objects and the obj_button_spawner object. Each instance of obj_button has its own unique 'HoverValue' and this is determined by the amount of instances of obj_button in the room. The obj_button_spawner object then has it's own unique 'HoverValue' that is compared with the currently selected obj_button instance, to trigger its function.
If you want to use controller input in your game, you would simply have to re-bind the current up and down keys in the con_input object. (The reason I didn't in this tutorial was because I didn't have one to hand). More about controller input can be found in GameMaker 2's documentation:
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/controls/gamepad input/index.html
If you enjoyed the video or found it useful, please don't forget to leave a like, comment if you have any issues and as always, subscribe if you aren't already!
Throughout the course of this series I will also be uploading project files which you will be able to download, to follow along with the video. All source files are licensed under Creative Commons Attribution 4.0 International (CC BY 4.0), and are free to use, even commercially. If you find these tutorials useful, please don't forget to like them and subscribe for more of my future content!
You can find a link to the license here: ►
https://creativecommons.org/licenses/by/4.0/
---------------------------------------------------------------------------------------------
PROJECT FILES:
http://www.mediafire.com/file/k1pkqxcqt49yxay/Episode-5b.zip
---------------------------------------------------------------------------------------------
Follow me on social media!
Website: ► https://www.warrenaterz.co.uk/
Facebook: ► https://www.facebook.com/Warrenaterz
Twitter: ► https://twitter.com/TheWarrenaterz
Instagram: ► https://www.instagram.com/warrenaterz
Twitch: ► https://www.twitch.tv/warrenaterz
Discord: ► https://discord.gg/V7Avbt6
Google+: ► https://plus.google.com/ TheWarrenaterz
Steam: ► https://steamcommunity.com/id/Warrenaterz