Pick a color example in Game Maker Studio
Channel:
Subscribers:
49
Published on ● Video Link: https://www.youtube.com/watch?v=uRF0ZLsIZ1U
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-30 | Trials Gold Gigatrack |
2017-12-23 | Terran vs Protoss fight |
2017-12-23 | Sc2 TvT Silver League |
2017-04-21 | Path of exile |
2017-04-17 | Path of exile |
2017-04-14 | Path Of Exile |
2016-11-15 | Slain: Back from hell |
2015-03-31 | My version of gauntlet |
2015-03-23 | Maze solving algorithm, now with the ability to add walls |
2015-03-23 | Maze solving algorithm |
2015-03-23 | Pick a color example in Game Maker Studio |
2015-03-17 | Maze Solving Algorithm |
2015-02-19 | My Inventory System in Game Maker Studio |