Pick a color example in Game Maker Studio

Channel:
Subscribers:
49
Published on ● Video Link: https://www.youtube.com/watch?v=uRF0ZLsIZ1U



Duration: 0:26
583 views
8


You can either click to select a color from the palette I drew or you can click the box and enter a hex value that it will convert into decimal value.

Some code snippets:

I have a controller with a global left mouse button event that uses the function draw_getpixel(mouse_x, mouse_y), which returns the color of the pixel under your mouse. Then I set that as the color for the sample box.

When you enter a hex value, i have a script that takes that hex value and parses out the decimal value for the red, blue and green to get the color into a format I need. Here is a link to that code:
https://www.dropbox.com/s/sb714rwdjjhmqs9/Color%20Picker%20Code%20Snippet.png?dl=0




Other Videos By jpaugh78


2018-04-30Trials Gold Gigatrack
2017-12-23Terran vs Protoss fight
2017-12-23Sc2 TvT Silver League
2017-04-21Path of exile
2017-04-17Path of exile
2017-04-14Path Of Exile
2016-11-15Slain: Back from hell
2015-03-31My version of gauntlet
2015-03-23Maze solving algorithm, now with the ability to add walls
2015-03-23Maze solving algorithm
2015-03-23Pick a color example in Game Maker Studio
2015-03-17Maze Solving Algorithm
2015-02-19My Inventory System in Game Maker Studio