GameMaker - Introduction to Shaders

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 220

  • @naruto-4990
    @naruto-4990 8 лет назад +220

    Hes back, the hero we deserve

    • @HiroTheHunter
      @HiroTheHunter 8 лет назад +10

      the hero we GML noobs need

    • @ScibbieGames
      @ScibbieGames 8 лет назад +4

      Shaders are pretty advanced tho.

    • @HiroTheHunter
      @HiroTheHunter 8 лет назад +4

      but they look so good *drool*

    • @BranoneMCSG
      @BranoneMCSG 8 лет назад +14

      Truly: _the hero we GML noobs need but not the one we deserve_

    • @alienx818
      @alienx818 7 лет назад +4

      he said on twitter that he will return make indie games and tutorial... :)

  • @SayadoMC
    @SayadoMC 8 лет назад +17

    Always a good day when Shaun uploads

  • @Faygris
    @Faygris 8 лет назад +77

    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.

    • @kekkekkington1900
      @kekkekkington1900 8 лет назад +1

      xor has good tutorials on the glsl side and gml side of shaders

    • @Faygris
      @Faygris 8 лет назад +1

      kek kekkington Cool, thank you!

    • @clintosss
      @clintosss 8 лет назад +2

      Faygris search up a channel called: lets learn gamemaker language

    • @clintosss
      @clintosss 8 лет назад +1

      Faygris search up a channel called: lets learn gamemaker language

  • @1wolfcubb
    @1wolfcubb 8 лет назад +7

    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.

  • @nekot4161
    @nekot4161 8 лет назад +1

    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!

  • @erithacus8465
    @erithacus8465 8 лет назад +46

    Black magic? Witchery? Heresy?
    GET THE FIRE AND BURN THE SHADERS!

  • @kidagine
    @kidagine 8 лет назад +1

    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.

  • @falseshepherd6575
    @falseshepherd6575 8 лет назад

    Welcome back man. Been following you recently. Your tutorials are really helpful. Best of luck on your life man.

  • @harinandanrnair6768
    @harinandanrnair6768 8 лет назад

    Yes.... finally ur back
    I hope you will once again become regular like you used to be

  • @arrxzon
    @arrxzon 8 лет назад

    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 !

  • @darhtchewie
    @darhtchewie 8 лет назад

    He's finally back!

  • @okzz2
    @okzz2 8 лет назад +6

    "im actually new to making shaders myself" then creates a masterpiece

  • @ElectricHamSandwich
    @ElectricHamSandwich 8 лет назад +9

    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!

  • @DeathColor96
    @DeathColor96 8 лет назад

    Dude! we missed you!

  • @lainvohndyrec962
    @lainvohndyrec962 8 лет назад

    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

  • @garbagetrash1793
    @garbagetrash1793 7 лет назад

    Come back to us Shaun! We love you!

  • @DiegoLuqueC
    @DiegoLuqueC 8 лет назад

    I have been waiting for this video for so long. Thank you, Shaun

  • @turukai
    @turukai 8 лет назад

    Fantastic, finally back!

  • @maksonmuki
    @maksonmuki 8 лет назад

    He's back!!!!

  • @Icodhack2992
    @Icodhack2992 8 лет назад

    OMG HE IS BACK! THE HERO! THE LEGEND :D
    Welcome back buddy :)

  • @Syklonus
    @Syklonus 6 лет назад +1

    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!

    • @copitzkymichael3313
      @copitzkymichael3313 2 года назад

      Always a pleasure to be reminded how advanced programming was back then

  • @54tan123
    @54tan123 8 лет назад

    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...

  • @fujoridev
    @fujoridev 3 года назад

    How to do this 7:44? Can I please have a code or a link to the code?

  • @jonjairo6982
    @jonjairo6982 8 лет назад

    He is back!!!!!!!!!

  • @coxyofnewp
    @coxyofnewp 8 лет назад

    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!)

  • @juanjoseramirezlarana1517
    @juanjoseramirezlarana1517 8 лет назад

    Would you explain how to make the third ghost shader effect? (in 7:50)

  • @SuperGamersgames
    @SuperGamersgames 8 лет назад

    The Game Maker Hero is back!!!! Yeah!!

  • @AwesomeEth9
    @AwesomeEth9 8 лет назад

    HES BACK!!!

  • @CJBurkey
    @CJBurkey 8 лет назад +2

    Because of English, "vertexes" is now correct, as is "vertices." Similar changes were made to cactus, allowing "cactuses" and "octopuses."

  • @Manzana1C
    @Manzana1C 8 лет назад +2

    He is back :D

  • @colonelsandwich641
    @colonelsandwich641 8 лет назад +3

    Sounds like you had fun making this video.

  • @elh_uevo
    @elh_uevo 8 лет назад

    oh you are back

  • @avivr903
    @avivr903 8 лет назад

    I always wondered what shaders are and how you use them

  • @dsquared9044
    @dsquared9044 8 лет назад

    Ahhhh he's back

  • @ThefamousMrcroissant
    @ThefamousMrcroissant 5 лет назад

    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.

  • @erichoward2191
    @erichoward2191 8 лет назад +1

    @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

  • @gv13511
    @gv13511 8 лет назад

    Welcom back my old friend

  • @cake_hd5848
    @cake_hd5848 8 лет назад

    Is he going to make videos regularly again ?

  • @SuperNintomdo
    @SuperNintomdo 8 лет назад +14

    omg dude please go back to making videos. You stopped making videos and some how got better at making videos. thanks for this!

    • @harinandanrnair6768
      @harinandanrnair6768 8 лет назад +3

      +Shaun Spalding Were u making vids for some other channels like in secretly or working on a game?

    • @harinandanrnair6768
      @harinandanrnair6768 8 лет назад +1

      You!!! LOL

    • @ninjamal666
      @ninjamal666 8 лет назад

      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)

    • @sugar2000galaxy
      @sugar2000galaxy 8 лет назад

      +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?

    • @sugar2000galaxy
      @sugar2000galaxy 8 лет назад +1

      +Shaun Spalding Oh, I found that video! Finally I can learn how to use GM 2!

  • @LizardKnightable
    @LizardKnightable 8 лет назад

    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!

  • @milomaz1
    @milomaz1 8 лет назад +29

    Yay it's been too long

  •  8 лет назад

    Very Nice video Shaun thank you very much, and nice work as community manager in GameMaker kudos

  • @nerdyshyguy23
    @nerdyshyguy23 8 лет назад

    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

  • @panchorecords7266
    @panchorecords7266 7 лет назад

    You are going to upload more video?

  • @omeraydindev
    @omeraydindev 8 лет назад

    Hi Shaun, how to make "Head Basketball" game with Game Maker Studio? Can you take a video?

  • @MinecraftMetThomas
    @MinecraftMetThomas 8 лет назад

    so you're getting back to tutorials now? :)

  • @pengtroll6247
    @pengtroll6247 7 лет назад +1

    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'

  • @TheAnimationStrikesBack
    @TheAnimationStrikesBack 6 лет назад +1

    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.

    • @300PIVOTMASTER
      @300PIVOTMASTER 6 лет назад +1

      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.

    • @TheAnimationStrikesBack
      @TheAnimationStrikesBack 6 лет назад +1

      Killua Zoldyck
      Thanx man

  • @erichopkinsable
    @erichopkinsable 2 года назад

    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?

  • @fernandosantalladelosangel4935
    @fernandosantalladelosangel4935 8 лет назад

    i´m happy ... hes back :)

  • @StarOnCheek
    @StarOnCheek 6 лет назад +2

    4:04 the right word for vertices not found

  • @nameq
    @nameq 8 лет назад +1

    how you did 3th shader? logic for pixel art in glsl looks like vertex shaders in php

    • @nameq
      @nameq 8 лет назад

      is it shader?

  • @BizKwikTwist
    @BizKwikTwist 5 лет назад +1

    Would this carry into gms2?

  • @DarshUK1
    @DarshUK1 8 лет назад +3

    Yay, this looks so cool

  • @cameronanderson9588
    @cameronanderson9588 8 лет назад

    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?

  • @Nikke-nn5mn
    @Nikke-nn5mn 8 лет назад

    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

  • @Kazami-Yuuji
    @Kazami-Yuuji 7 лет назад

    How would one go about making an effect like Asriel Dreemurrs aura, even if its not using shaders?

  • @leedleleedle6824
    @leedleleedle6824 8 лет назад

    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.

  • @Dag0suu
    @Dag0suu 7 лет назад

    i have a question. Is collision event like step event? Is efficient to use step event for collision than collision event?

  • @cameronanderson9588
    @cameronanderson9588 7 лет назад

    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?

  • @soubakouh
    @soubakouh 4 года назад +2

    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!!

  • @OskarFFS
    @OskarFFS 8 лет назад +1

    i saw the things you posted on twitter using shaders, they where cool

  • @DaggrYTB
    @DaggrYTB 8 лет назад

    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)?

  • @somaraid
    @somaraid 8 лет назад

    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

  • @ninjamal666
    @ninjamal666 8 лет назад

    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)

  • @bleuthoot
    @bleuthoot 8 лет назад

    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.

  • @Justin_Time_TOIT
    @Justin_Time_TOIT 8 лет назад

    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

  • @jonatheringaming8369
    @jonatheringaming8369 8 лет назад

    Yay another video!

  • @huhok.6461
    @huhok.6461 7 лет назад +1

    I hope that while returning to indies, he returns to making tutorials ;_;

  • @swegx7605
    @swegx7605 7 лет назад +2

    It's been half a year now :c

  • @damdal1837
    @damdal1837 8 лет назад

    Shaun, is there any way of finding the width and height of a pixel in game maker, or formula to use?

    • @tedi7103
      @tedi7103 8 лет назад

      >width and height of a pixel
      1x1
      good bait, I fell for it

    • @damdal1837
      @damdal1837 8 лет назад

      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).

  • @ent1064
    @ent1064 8 лет назад

    can u make a tutorial about choosing your dificulty in game maker

  • @MikeArcuri
    @MikeArcuri Год назад

    Er... came to see the example with the ghost experiencing the horizontal waves/offsets... you showed it animating but didn't cover the shader.

  • @nyanmask395
    @nyanmask395 8 лет назад

    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.

  • @geckie5555
    @geckie5555 8 лет назад

    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

  • @ThePandaSenpai
    @ThePandaSenpai 6 лет назад

    Does that work for draw_text()?

  • @bvoigtlaender
    @bvoigtlaender 8 лет назад

    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.

    • @bvoigtlaender
      @bvoigtlaender 8 лет назад

      P.S. Sorry for my bad english. It is not my first language. I hope you can understand me anyway.

  • @A2JakeSauce
    @A2JakeSauce 8 лет назад

    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.

  • @thepsychobear2362
    @thepsychobear2362 8 лет назад

    Could you make a tutorial on knockback in platformers?

  • @GymmyRhys
    @GymmyRhys 8 лет назад

    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...

  • @PoshoDev
    @PoshoDev 8 лет назад

    Please keep posting.

  • @fmagic2306
    @fmagic2306 8 лет назад

    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

    • @FROZENbender
      @FROZENbender 8 лет назад

      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

    • @fmagic2306
      @fmagic2306 8 лет назад

      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

    • @FROZENbender
      @FROZENbender 8 лет назад

      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

    • @fmagic2306
      @fmagic2306 8 лет назад

      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!

  • @arsenbabaev1022
    @arsenbabaev1022 7 лет назад +1

    Shaun ! make new videos please ! Im from 2017

  • @TheLegerChannel
    @TheLegerChannel 7 лет назад

    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.

  • @bobbyneal2498
    @bobbyneal2498 7 лет назад

    Doesn't the engine have a list of codes?

  • @RyanSonic
    @RyanSonic 8 лет назад +5

    When you watch a video on shaders and realise your game is about simplicity and is in Black & White.

  • @QuartzIsAnOxide
    @QuartzIsAnOxide 8 лет назад

    I'm new to GM, what is the advantage of using a shader and not just adding the black outline to the sprite itself?

    • @ChristianRoyUtah
      @ChristianRoyUtah 8 лет назад +2

      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.

  • @dmitrykolesnikovich
    @dmitrykolesnikovich 6 лет назад

    great explanation ever

  • @tuskybarn
    @tuskybarn 8 лет назад

    You're good at making helpful videos. Keep it up!!

  • @dragos-andreiilies526
    @dragos-andreiilies526 8 лет назад

    It works for vector graphics?

  • @HumblyMMO
    @HumblyMMO 5 лет назад

    is this still applicable within GMS2?

  • @luckzeisaki8600
    @luckzeisaki8600 8 лет назад

    I love the way you did this video. Keep up the good work! :D

  • @LifeAfterBreakfast
    @LifeAfterBreakfast 8 лет назад

    a new tutorial. and its about shaders. great!

  • @reapingtrace2532
    @reapingtrace2532 8 лет назад

    woooooooooooooooo
    finally another video i can learn from

  • @lunatic_3521
    @lunatic_3521 8 лет назад

    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 :)

  • @franzwirzaus8307
    @franzwirzaus8307 8 лет назад

    Is at least this thing working on lite version?

    • @CKDEV
      @CKDEV 8 лет назад

      no

  • @anderol
    @anderol 8 лет назад

    In this video you sound like a british Owen Wilson, great introduction!

  • @pyro4sub28
    @pyro4sub28 8 лет назад

    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)

  • @Matmons
    @Matmons 7 лет назад

    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.

  • @jontedeakin1986
    @jontedeakin1986 7 лет назад

    wheres the new vid