How to Make a Pause Button on Scratch!

Поділитися
Вставка
  • Опубліковано 26 вер 2024
  • Whether you have a big game or a small game, a pause function (pause button) is pretty important. Today, I'm going to show you how to make a pause button in Scratch!
    Follow my scratch page:

КОМЕНТАРІ • 80

  • @deemanguy
    @deemanguy  3 роки тому +13

    Just an FYI, I'm not doing Scratch videos anymore

  • @rosequiruga8410
    @rosequiruga8410 3 роки тому +4

    This is the first one, except for the scratch teams one, that works!

    • @Konita_YT
      @Konita_YT 2 роки тому +1

      I have one that works too!

  • @shyamsagar8472
    @shyamsagar8472 3 роки тому +3

    Loved the tutorial.Super helpful

  • @marco1941
    @marco1941 Рік тому +2

    Things get more tricky when the animation is only supposed to be triggered once (a dialogue for example). What I did is to put an "If pause is true: wait until pause is false" in between every other visible or audible step of a script. That's the best way I could figure out. It works, but it is a lot of work for the programmer as well as for the computer. So if anybody has a better idea please let me (and everybody else) know.

    • @Applejuice646
      @Applejuice646 Рік тому

      So do you mean like in an animation video in scratch? Because I made one and I’m trying to make a pause button but all the tutorials show how to make one for games, so if you did it can you explain a bit more

  • @Topitux
    @Topitux 4 роки тому +1

    thanks man helped alot with my zombie shooter

  • @Raphy99997
    @Raphy99997 4 роки тому +2

    thanks dude super helpfull

  • @maranellogaming
    @maranellogaming 2 роки тому +1

    this helped me a lot thanks!

  • @Saffy_707
    @Saffy_707 3 роки тому +2

    Thx this helped SO much!

  • @Raamioh
    @Raamioh Рік тому

    Dude words can not describe how happy I am

  • @andreitrica3375
    @andreitrica3375 3 роки тому +3

    Very good, but there is a chrome extension that can make it for you. Anyway, I liked this tutorial! Keep it up! #coding

  • @jonsmith4870
    @jonsmith4870 4 роки тому +1

    Thank you for the content plz make more

  • @marco1941
    @marco1941 Рік тому

    Oh, that „wait until not key pressed“ thing is helpful for some other shit as well!

  • @punyashree_bts_army7854
    @punyashree_bts_army7854 2 роки тому

    Thank you SIR (BRO)

  • @besquareorbethere2680
    @besquareorbethere2680 3 роки тому

    Him: "Implement your pause system"
    Me who just gave every sprite it's own impromptu pause system knowing I'm going to remove every script from the old pause system: *"Oh Neptune"*

  • @hihi-rr6xt
    @hihi-rr6xt 2 роки тому

    Easy to follow an put into games great work!

  • @juanpaulofricke1506
    @juanpaulofricke1506 2 роки тому

    thanks bro you are beautyfull

  • @davidjung6473
    @davidjung6473 4 роки тому +2

    I followed the tutorial, and I can pause, but if u hold the button, it's just hell. Plz tell me how to fix this

    • @richmail
      @richmail 4 роки тому

      instaded of useing the blockss form sencing ofthe key presses, use the blocks for control

    • @deemanguy
      @deemanguy  4 роки тому

      Have you put in the "Wait until not key pressed" function after the variable? That works for me

    • @richmail
      @richmail 4 роки тому

      @@deemanguy that way the guy holding the p button will have to keep holding down the p button, heres my desigh, see indie, then the pause sprtie scratch.mit.edu/projects/389188224/

    • @deemanguy
      @deemanguy  4 роки тому

      @@richmail Okay so when you press the pause button, it says to stop the script, but when you hold it, it does it over and over again. This is because once you hold the pause button, it is a constant loop of pausing. This is why I like to do the "Wait until not key pressed" function because it restricts the spam. Otherwise, the game is pretty good.

    • @deemanguy
      @deemanguy  4 роки тому

      @David Jung can you share your project with me please?

  • @KirbyD1tto
    @KirbyD1tto Рік тому

    thank you

  • @alfiehodgy6204
    @alfiehodgy6204 3 роки тому

    Ayy thanks dude this rlly helped

  • @shivanshdutta3846
    @shivanshdutta3846 4 роки тому +2

    have you made a resume button too I need help in scratch

    • @deemanguy
      @deemanguy  4 роки тому +1

      Do you mean when you unpause the game, or when you save a game and then come back to it?

    • @getsomehelp6261
      @getsomehelp6261 3 роки тому

      @@deemanguy unpause

    • @getsomehelp6261
      @getsomehelp6261 3 роки тому

      set pause to false

  • @modestasgaming1241
    @modestasgaming1241 2 роки тому

    Hey,my name is Modestas and I wanna ask you a question if u have a lots of sprites in my game do I have to do the same codes as you do?Ur cool I,m giving you a sub

  • @greendog105
    @greendog105 2 роки тому

    oh, if you have another forever inside your big forever loop, you have to set the pause script to it as well, or else it won't work!

  • @cookie_884
    @cookie_884 Рік тому

    You just prevented me from raging

  • @soyunrandom648
    @soyunrandom648 3 роки тому

    you are a pro mamadisimo

  • @greendog105
    @greendog105 2 роки тому

    that was awesome, thank you

  • @nousername33
    @nousername33 2 роки тому

    either my game is too complicated or this is outdated. I tried doing with in my game, but it didnt work. then I tried doing "if pause=true then stop all scripts in this sprite" BUT IT STILL DIDNT WORK. someone please tell me a different way on how to do this.

  • @dripzk1886
    @dripzk1886 2 роки тому

    less gooo

  • @checkerooni9338
    @checkerooni9338 3 роки тому

    thank you for the help!!!! please make more videos

  • @ldm3856
    @ldm3856 3 роки тому +2

    hey, i have a question: How to you stop clones from spawning if Pause is true? because even when its on true enemies keep spawning... 🤔

    • @amlow123
      @amlow123 3 роки тому

      When you spawn the enemy put a if then inside the forever loop, and inside the if then put if pause = false then spawn enemy. Hope that helps I know it a bit confusing

    • @ldm3856
      @ldm3856 3 роки тому

      @@amlow123 that's actually, what I did at the beginning, but it didn't Work... That's also why I'm so confused, cause I don't see any reason why it shouldn't work :/

    • @amlow123
      @amlow123 3 роки тому

      @@ldm3856 umm I am making the pause button right now I will try to see how I can make it work

    • @amlow123
      @amlow123 3 роки тому

      @@ldm3856 it works for me. Idk why it doesn’t work for you

    • @phxpxl1811
      @phxpxl1811 3 роки тому

      @@amlow123 Thank you.

  • @alex2792
    @alex2792 Рік тому

    for some reason, it only pauses once then doesnt work

  • @der_profi_digga6966
    @der_profi_digga6966 3 роки тому

    Thanks!!

  • @Gylax
    @Gylax 3 роки тому

    Thanks man

  • @beverlymatayoshi2973
    @beverlymatayoshi2973 5 місяців тому

    What if I made a main menu screen

  • @haslinabdulhamid5787
    @haslinabdulhamid5787 2 роки тому

    I have been looking for ways to make a Pause Button for My Shaggy Full Week FnF Scratch

  • @drippymissouri
    @drippymissouri 3 роки тому

    Use scratch addons to add a pause button

  • @greendog105
    @greendog105 2 роки тому

    I can't make it work though

  • @pombio9054
    @pombio9054 3 роки тому

    thanks lol

  • @简子棥
    @简子棥 2 роки тому

    im the 16000th viewer

  • @kumsan76
    @kumsan76 3 роки тому

    hey my pause button is not working

  • @bindat9872
    @bindat9872 3 роки тому

    dude your code is the same as mine but i used this to stop time

  • @arvidclaeys4394
    @arvidclaeys4394 2 роки тому

    D

  • @jasper642
    @jasper642 3 роки тому

    69 subscribers what is this

  • @htunsucksdick
    @htunsucksdick 3 роки тому

    somehow this is 6 minutes