Shaders are one part of Game Maker I would really like to understand well, but it's hard for me to even get started, since it's a different programming language and all. I'd love to see some tutorials that teach some very basic shader options, at least.
yay it's Shaun! great to see your channel growing to support intermediate to advanced tutorials! Looking forward to learn more on creating shaders in GM.
Love your vids Shaun! I downloaded GameMaker when a friend ask me to help her create an JRPG game with her and your tutorial videos have been a blessing to learn GameMaker. Thank you!
Thanks a lot Shaun for being such a great teacher. I love your new way of teaching, bit more relaxed and fun, but still informative, makes it easier to watch.
It's really great to see you back man, being new to game maker and recently flying through your tutorials I was hoping to see much more content from you. I'll look forward to the next videos alright, see what we can learn next. Keep it up !
great tutorial dude :D do you think you could maybe do a tutorial on resolution scaling? I find it difficult to understand and i'm sure alot of other people do too. we would really benefit from a tutorial covering it!
Could that third shader be applied to backgrounds? There's a ton of Megadrive games which use that sort of wavey effect on their background layers and it's super cool!
yay! you're finaly back! just a quick question: what did you set the uniforms pixelH and pixelW to? I thought it would be 1/sprite_height and 1/sprite_width respectively. But that only makes almost the whole sprite opaque...
A really nice simple way to get people to have some understanding of shaders.. As they are really great tool to use in GMS to make some very impressive results (when you get the hang of them!)
I used to play around with Gamemaker back in elementary school, I'm giving a course in "programming" for young children soon and upon re-opening Gamemaker for the first time in years I was actually baffled they implemented shaders. This is a cool addition.
hey shaun ! i had a problem !! i actually mad an android game and when i export it to apk its done fine but when i put the extension of google play service to it ... it doesnt export to apk any more !!! any help or suggest please !! i had all kind of stuff necessary like jdk , ndk , sdk and im using gms 1.4.1567 (sorry for my english)
+Shaun Spalding Hey Shaun! I already know about new game maker version. Is that why you din't make a video in a long time? I dunno but when I was at the yoyo games channel, I only saw 16 tutorials and not 17. Did you mistaken or is the (17) video not yet uploaded?
Hello! thanks for the video! I bought the bundle some day ago :D thanks for your tutorials! One thing: where can I find written ones? because since I have already some experience with game developing I know quite things and so follow the videos isn't always easy for me...thanks!
hey shaun loving all the videos you got theyre really helpful. i was just wondering if you could make a tutorial on charge shots like in mega man? thanks
can you make a tutorial on how to make the character change direction through sprites while your gun can move in 360 degrees, like in 'a gun that shoot bees'
Shaun you seem to be an expert in gamemaker. I need some help. I want to give my sprite an irregular shaped collision mask but there seems to be no option for that.
So what you can do is make a new sprite in the shape of your desired collision mask, then set the sprite mask to have _precise collision checking_ . Then, go to the original object that you want to have an irregular collision mask. On the left of the object properties panel, you should be able to change the collision mask to your new sprite.
Ok this video is 5 years old but I have a question. When I try to set up an "outline" shader like yours, it "crops" the outline down to the size of the figure in the sprite, even if there is blank space left to the sides. I.e. It doesn't draw the outline pixels past the farthest filled pixel in any dimension. I guess there have been changes to the runtime over the last 5 years to make it do this, but are you aware of a workaround?
Nice tutorial, however I don't understand one part of the Fragment portion. PixelW and PixelH are defined but not given a value, it would make sense to me if they were given a value of 1 or something. What happened here?
Shaun, I don't know if you could help me with this problem I'm having but I've recently bought Game maker professional., just so I am able to use it on mac. (haven't guessed, I'm a mac user) However, I try downloading gamemaker and i'm presented with a warning that states that the download can not be opened due to it only being for windows. I just want to open gamemaker on mac, I've purchased it- sent a message on the forums about this problem but still nothing. Please help if you can.
Created a test environment, and tried the code. The sprite's opaque space was NEARLY filled with black. I guess I don't understand how you can check in all 4 directions, and only get an outline?
shader_reset(); shader_reset(); shader_reset(); shader_reset(); shader_reset(); ... after using shaders, i go to other roomss and I see ALL SCREEN in BLACK... T_T HELP PLS!!
I have a contextual focus blur shader in my game, right now when activated it blurs everything on screen. How can I have it so that some drawn elements are bypassed (HUD for example)?
Hey Shaun,I've been working on a game quite a lot recently and i realized that a good part of my code has been made thanks to your tutorials.I always try to add my own style to the code,but most of the time it looks very similar to your code.I was just wondering if you're ok with the fact that people are using your code in their games? I'm definitely going to credit you in my game if it ever gets big
hey shaun ! i had a problem !! i actually mad an android game and when i export it to apk its done fine but when i put the extension of google play service to it ... it doesnt export to apk any more !!! any help or suggest please !! i had all kind of stuff necessary like jdk , ndk , sdk and im using gms 1.4.1567 (sorry for my english)
Diffrent question: How do you make decent sprites, like player sprites. I have a feeling it's not really possible to make a tutorial of this, because it's more of an imagination thing.
Hi I'm trying to make a isometric game in game maker and there is like little to no tutorials on it and in the game when you go behind walls I want to be transparent or disappear when you walk behind him my game is a semi open world game please help
The width and height would not be 1, when coding in glsl which is straight onto the gpu you need to enter the real width and height that the pixel is on the screen. So the the answer is going to be in inches (I think) and will be very small (for me it was 0.0005).
Can you make a tutorial about dynamically drawing shapes(i.e. rectangle, square) and fill them with a color plus(now comes the tricky part) applying anti aliasing on the edges.
Dear Shaun Could you please make a tutorial, on handling getting hit by the enemy in a 2d sidescroller. I'm working on one, and have gotten stuck at a point where I have created a working healthbar, but since I have no knockback or anything like that from the enemy, when it hits the player, it just glitches further and further into him, resulting in an almost instant kill effect. Thanks - TheKingFlower
Hey Shaun, Can you please make a tutorial on how to properly program a touchcreen. I never understand how it works and all the tutorials i watched didn't help. I ask you because your videos are always very understandable for me.
Hello, Ive been watching your channel for a while and i could like to ask a personal favor. If you would be so kind as to make a tutorial on seemless room transitions in the way of constant player movement without being able to tell when a room transitions I would very much appreciate it.
does anyone know how to put games on to Game Maker Player? its funny how something so simple is so difficult, ive been trying for ages to work out htf you do this i tried googling how to do it to no avail, i would've asked on YoYo's own youtube channel on the vid that promotes Game Maker Player but the comments are blocked...
Hi.i got a question.i cant find anything about the topic anywere.how do you integrate real waiting times.like for example farmville were you log out but the timer goes on and when you log back in in a few hours the crops are grown.wich function do i use? greetz
you're talking about a game that runs on a server, when you "log-out" the game is still running on the server. You could emulate something like this by checking the os clock and calculating howmuch time has passed though I don't know if that's possible with Game Maker
Clockshock thx for the reply .yeah there are some time variables .ive checked them out but im still having trouble with getting it to work and the math .you know any tutorial for this somewere?...greetz
check out the documentation on date_current_datetime. have the crops store the time when they were planted. Then you can easily determine how long they still need to grow. I don't know tutorials about the subject, but it seems rather simple, I figured this out this very minute by reading the documentation
yeah im going to mess around with it today.i think i start a new project just to test this and ten implement it into my current project when i figured put the best way.thx for the respond!
Make a GUI layer tutorial. there isn't a lot of videos out there for that and the videos that are out there are very complicated and not explained well.
So if you ever make a game with a lot of sprites, it slows down build times and stuff. Shaders are a lot faster and can be conveniently applied to any image. So you make one outline shader and can now outline any number of sprites without having to manually do it.
haha didnt imagine you posting anything anymour, well snce i guess you're reading this comment cuz this vid is new, i wanted to thank you. I mate alot of games and i used all my knowledge from only your tutorials :)
Hes back, the hero we deserve
the hero we GML noobs need
Shaders are pretty advanced tho.
but they look so good *drool*
Truly: _the hero we GML noobs need but not the one we deserve_
he said on twitter that he will return make indie games and tutorial... :)
Always a good day when Shaun uploads
Shaders are one part of Game Maker I would really like to understand well, but it's hard for me to even get started, since it's a different programming language and all. I'd love to see some tutorials that teach some very basic shader options, at least.
xor has good tutorials on the glsl side and gml side of shaders
kek kekkington Cool, thank you!
Faygris search up a channel called: lets learn gamemaker language
Faygris search up a channel called: lets learn gamemaker language
yay it's Shaun! great to see your channel growing to support intermediate to advanced tutorials! Looking forward to learn more on creating shaders in GM.
Love your vids Shaun! I downloaded GameMaker when a friend ask me to help her create an JRPG game with her and your tutorial videos have been a blessing to learn GameMaker. Thank you!
Black magic? Witchery? Heresy?
GET THE FIRE AND BURN THE SHADERS!
Thanks a lot Shaun for being such a great teacher.
I love your new way of teaching, bit more relaxed and fun, but still informative, makes it easier to watch.
Welcome back man. Been following you recently. Your tutorials are really helpful. Best of luck on your life man.
Yes.... finally ur back
I hope you will once again become regular like you used to be
It's really great to see you back man, being new to game maker and recently flying through your tutorials I was hoping to see much more content from you. I'll look forward to the next videos alright, see what we can learn next. Keep it up !
He's finally back!
"im actually new to making shaders myself" then creates a masterpiece
great tutorial dude :D do you think you could maybe do a tutorial on resolution scaling? I find it difficult to understand and i'm sure alot of other people do too. we would really benefit from a tutorial covering it!
I agree
Dude! we missed you!
welcome back!! we missed you...
pls create a tutorial in making IAP(google play, amazon, ios) setting it up in GM will be much appriciated
Come back to us Shaun! We love you!
I have been waiting for this video for so long. Thank you, Shaun
Fantastic, finally back!
He's back!!!!
OMG HE IS BACK! THE HERO! THE LEGEND :D
Welcome back buddy :)
Could that third shader be applied to backgrounds? There's a ton of Megadrive games which use that sort of wavey effect on their background layers and it's super cool!
Always a pleasure to be reminded how advanced programming was back then
yay! you're finaly back!
just a quick question: what did you set the uniforms pixelH and pixelW to? I thought it would be 1/sprite_height and 1/sprite_width respectively. But that only makes almost the whole sprite opaque...
How to do this 7:44? Can I please have a code or a link to the code?
He is back!!!!!!!!!
A really nice simple way to get people to have some understanding of shaders.. As they are really great tool to use in GMS to make some very impressive results (when you get the hang of them!)
Would you explain how to make the third ghost shader effect? (in 7:50)
The Game Maker Hero is back!!!! Yeah!!
HES BACK!!!
Because of English, "vertexes" is now correct, as is "vertices." Similar changes were made to cactus, allowing "cactuses" and "octopuses."
He is back :D
Sounds like you had fun making this video.
oh you are back
I always wondered what shaders are and how you use them
Ahhhh he's back
I used to play around with Gamemaker back in elementary school, I'm giving a course in "programming" for young children soon and upon re-opening Gamemaker for the first time in years I was actually baffled they implemented shaders. This is a cool addition.
@Shaun Spalding can you share the code for setting the shader? I'm padding 1.0 to the uniform and it's drawing a much thicker black outline
Welcom back my old friend
Is he going to make videos regularly again ?
omg dude please go back to making videos. You stopped making videos and some how got better at making videos. thanks for this!
+Shaun Spalding Were u making vids for some other channels like in secretly or working on a game?
You!!! LOL
hey shaun ! i had a problem !! i actually mad an android game and when i export it to apk its done fine but when i put the extension of google play service to it ... it doesnt export to apk any more !!! any help or suggest please !! i had all kind of stuff necessary like jdk , ndk , sdk and im using gms 1.4.1567 (sorry for my english)
+Shaun Spalding Hey Shaun! I already know about new game maker version. Is that why you din't make a video in a long time? I dunno but when I was at the yoyo games channel, I only saw 16 tutorials and not 17. Did you mistaken or is the (17) video not yet uploaded?
+Shaun Spalding Oh, I found that video! Finally I can learn how to use GM 2!
Hello! thanks for the video! I bought the bundle some day ago :D thanks for your tutorials! One thing: where can I find written ones? because since I have already some experience with game developing I know quite things and so follow the videos isn't always easy for me...thanks!
Yay it's been too long
Very Nice video Shaun thank you very much, and nice work as community manager in GameMaker kudos
hey shaun loving all the videos you got theyre really helpful. i was just wondering if you could make a tutorial on charge shots like in mega man? thanks
You are going to upload more video?
Hi Shaun, how to make "Head Basketball" game with Game Maker Studio? Can you take a video?
so you're getting back to tutorials now? :)
can you make a tutorial on how to make the character change direction through sprites while your gun can move in 360 degrees, like in 'a gun that shoot bees'
Shaun you seem to be an expert in gamemaker. I need some help. I want to give my sprite an irregular shaped collision mask but there seems to be no option for that.
So what you can do is make a new sprite in the shape of your desired collision mask, then set the sprite mask to have _precise collision checking_ . Then, go to the original object that you want to have an irregular collision mask. On the left of the object properties panel, you should be able to change the collision mask to your new sprite.
Killua Zoldyck
Thanx man
Ok this video is 5 years old but I have a question. When I try to set up an "outline" shader like yours, it "crops" the outline down to the size of the figure in the sprite, even if there is blank space left to the sides. I.e. It doesn't draw the outline pixels past the farthest filled pixel in any dimension. I guess there have been changes to the runtime over the last 5 years to make it do this, but are you aware of a workaround?
i´m happy ... hes back :)
4:04 the right word for vertices not found
how you did 3th shader? logic for pixel art in glsl looks like vertex shaders in php
is it shader?
Would this carry into gms2?
Yay, this looks so cool
Nice tutorial, however I don't understand one part of the Fragment portion.
PixelW and PixelH are defined but not given a value, it would make sense to me if they were given a value of 1 or something. What happened here?
Could you make a video about Virtual keys? i got the android module from humble bundle and i have had a lot of problems with them
How would one go about making an effect like Asriel Dreemurrs aura, even if its not using shaders?
Shaun, I don't know if you could help me with this problem I'm having but I've recently bought Game maker professional., just so I am able to use it on mac. (haven't guessed, I'm a mac user) However, I try downloading gamemaker and i'm presented with a warning that states that the download can not be opened due to it only being for windows. I just want to open gamemaker on mac, I've purchased it- sent a message on the forums about this problem but still nothing. Please help if you can.
i have a question. Is collision event like step event? Is efficient to use step event for collision than collision event?
Created a test environment, and tried the code. The sprite's opaque space was NEARLY filled with black. I guess I don't understand how you can check in all 4 directions, and only get an outline?
shader_reset();
shader_reset();
shader_reset();
shader_reset();
shader_reset();
... after using shaders, i go to other roomss and I see ALL SCREEN in BLACK... T_T HELP PLS!!
i saw the things you posted on twitter using shaders, they where cool
I have a contextual focus blur shader in my game, right now when activated it blurs everything on screen. How can I have it so that some drawn elements are bypassed (HUD for example)?
Hey Shaun,I've been working on a game quite a lot recently and i realized that a good part of my code has been made thanks to your tutorials.I always try to add my own style to the code,but most of the time it looks very similar to your code.I was just wondering if you're ok with the fact that people are using your code in their games? I'm definitely going to credit you in my game if it ever gets big
hey shaun ! i had a problem !! i actually mad an android game and when i
export it to apk its done fine but when i put the extension of google
play service to it ... it doesnt export to apk any more !!! any help or
suggest please !! i had all kind of stuff necessary like jdk , ndk , sdk
and im using gms 1.4.1567 (sorry for my english)
Diffrent question: How do you make decent sprites, like player sprites.
I have a feeling it's not really possible to make a tutorial of this, because it's more of an imagination thing.
Hi I'm trying to make a isometric game in game maker and there is like little to no tutorials on it and in the game when you go behind walls I want to be transparent or disappear when you walk behind him my game is a semi open world game please help
Yay another video!
I hope that while returning to indies, he returns to making tutorials ;_;
It's been half a year now :c
Shaun, is there any way of finding the width and height of a pixel in game maker, or formula to use?
>width and height of a pixel
1x1
good bait, I fell for it
The width and height would not be 1, when coding in glsl which is straight onto the gpu you need to enter the real width and height that the pixel is on the screen. So the the answer is going to be in inches (I think) and will be very small (for me it was 0.0005).
can u make a tutorial about choosing your dificulty in game maker
Er... came to see the example with the ghost experiencing the horizontal waves/offsets... you showed it animating but didn't cover the shader.
Can you make a tutorial about dynamically drawing shapes(i.e. rectangle, square) and fill them with a color plus(now comes the tricky part) applying anti aliasing on the edges.
Dear Shaun
Could you please make a tutorial, on handling getting hit by the enemy in a 2d sidescroller. I'm working on one, and have gotten stuck at a point where I have created a working healthbar, but since I have no knockback or anything like that from the enemy, when it hits the player, it just glitches further and further into him, resulting in an almost instant kill effect.
Thanks - TheKingFlower
Does that work for draw_text()?
Hey Shaun,
Can you please make a tutorial on how to properly program a touchcreen.
I never understand how it works and all the tutorials i watched didn't help.
I ask you because your videos are always very understandable for me.
P.S. Sorry for my bad english. It is not my first language. I hope you can understand me anyway.
Hello, Ive been watching your channel for a while and i could like to ask a personal favor. If you would be so kind as to make a tutorial on seemless room transitions in the way of constant player movement without being able to tell when a room transitions I would very much appreciate it.
Could you make a tutorial on knockback in platformers?
does anyone know how to put games on to Game Maker Player? its funny how something so simple is so difficult, ive been trying for ages to work out htf you do this
i tried googling how to do it to no avail, i would've asked on YoYo's own youtube channel on the vid that promotes Game Maker Player but the comments are blocked...
Please keep posting.
Hi.i got a question.i cant find anything about the topic anywere.how do you integrate real waiting times.like for example farmville were you log out but the timer goes on and when you log back in in a few hours the crops are grown.wich function do i use? greetz
you're talking about a game that runs on a server, when you "log-out" the game is still running on the server. You could emulate something like this by checking the os clock and calculating howmuch time has passed though I don't know if that's possible with Game Maker
Clockshock thx for the reply .yeah there are some time variables .ive checked them out but im still having trouble with getting it to work and the math .you know any tutorial for this somewere?...greetz
check out the documentation on date_current_datetime. have the crops store the time when they were planted. Then you can easily determine how long they still need to grow. I don't know tutorials about the subject, but it seems rather simple, I figured this out this very minute by reading the documentation
yeah im going to mess around with it today.i think i start a new project just to test this and ten implement it into my current project when i figured put the best way.thx for the respond!
Shaun ! make new videos please ! Im from 2017
Make a GUI layer tutorial. there isn't a lot of videos out there for that and the videos that are out there are very complicated and not explained well.
Doesn't the engine have a list of codes?
When you watch a video on shaders and realise your game is about simplicity and is in Black & White.
Hahaha
I'm new to GM, what is the advantage of using a shader and not just adding the black outline to the sprite itself?
So if you ever make a game with a lot of sprites, it slows down build times and stuff. Shaders are a lot faster and can be conveniently applied to any image. So you make one outline shader and can now outline any number of sprites without having to manually do it.
great explanation ever
You're good at making helpful videos. Keep it up!!
It works for vector graphics?
is this still applicable within GMS2?
I love the way you did this video. Keep up the good work! :D
a new tutorial. and its about shaders. great!
woooooooooooooooo
finally another video i can learn from
haha didnt imagine you posting anything anymour, well snce i guess you're reading this comment cuz this vid is new, i wanted to thank you. I mate alot of games and i used all my knowledge from only your tutorials :)
Is at least this thing working on lite version?
no
In this video you sound like a british Owen Wilson, great introduction!
help its saying " ""c" is not a valid integer value. " and i need help!!!!!!!
(this is on your first game part 1 video and i cant open up my game)
hello shawn. I m sorry because I m a noob. but i want to know how to create piercing bullet at top down shooter game. thankyou very much.
wheres the new vid