Scratch Stop Button Detector

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

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

  • @ckqk
    @ckqk 3 года назад +79

    everybody, start a *_"D O G"_* chain.

  • @ShiftClickLearn
    @ShiftClickLearn  3 года назад +8

    Enjoy! 😃

  • @TheMaxGuy
    @TheMaxGuy 2 года назад +3

    i wanna say
    this is a better way of doing it, because if you have any other scripts relying on the timer, they don't break. however, if you use "when green flag clicked forever reset timer" and "when timer > 0.01", they WILL break.

  • @CaptainRobobot
    @CaptainRobobot 3 месяца назад

    3 years later and this is still helpful! Thanks a lot man!

  • @willpunchit272
    @willpunchit272 3 года назад +11

    You deserve WAY more subs!

  • @Baburun-Sama
    @Baburun-Sama 3 года назад +2

    Nicely done Concept of a "when stop sign clicked" block.

  • @PoliThePolarCat1947
    @PoliThePolarCat1947 2 года назад +1

    I made a scratch cat shooting game using this tutorial! Thank you so much!

  • @Rory432
    @Rory432 3 года назад +17

    For thumbnails I used to just do when flag is click set ghost effect to 0 and that would make it show when the stop is clicked but this is better couse I can give it an animation

  • @susmitadash1167
    @susmitadash1167 Год назад +3

    If you want to make a thumbnail you can also forever set the ghost effect to 100 and go to front layer so when you stop the project all the effects go so the thumbnail shows.

  • @hannaluvscate
    @hannaluvscate 3 года назад +1

    I love how you get straight to the point

  • @djy2ndgaming
    @djy2ndgaming 3 года назад +2

    Wow you are one of the best scratchers on youtube!

  • @rlawrence678
    @rlawrence678 3 года назад +4

    Love the new into and icon

  • @Tutoon
    @Tutoon 2 года назад +2

    I had to use an empty costume Sprite to make it easier this is a great tutorial

  • @clockFox09
    @clockFox09 Год назад +1

    I am making a multiplayer game, and thanks to this, I can detect when someone leaves, (which is important, I think... I'm not following a tutorial I'm just trying to go as far as possible without one,) tsym!

  • @TheHippyHoppyHippo
    @TheHippyHoppyHippo 2 года назад +1

    Your video production is so good

  • @icmy1232
    @icmy1232 3 года назад +2

    you can do forever reset timer, when timer > 0.1 then switch costume

  • @toasturhztoastbunz896
    @toasturhztoastbunz896 3 года назад +2

    Apart of me thinks that the timer running after the stop sign has been clicked was probably just a glitch or oversight by the developers of scratch. If that's the case then I really hope they don't patch it. There are many uses with this trick.

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

      Yeah, I hope so too- It's really usefull bug LOL.

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

      when stop sign clicked block is in the banned blocks list

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

    THIS HELPED ME TO HIDE VARIABLES WHEN THUMBNAIL SHOWS UP

  • @DrD3molition
    @DrD3molition 2 года назад +1

    That is so clever! Good vid as always! I subbed :D

  • @dksoaofoci
    @dksoaofoci 3 года назад +2

    ooh thanks! this can definitely help my design in some games :)

    • @ShiftClickLearn
      @ShiftClickLearn  3 года назад +2

      You are very welcome Polymite!

    • @dragonianfireman
      @dragonianfireman 3 года назад +1

      @@ShiftClickLearn this feels sarcastic when he says definitely *OMG after playing among us I feel everyones sus I need to stop ;)*

  • @Kr3pi_
    @Kr3pi_ 2 года назад +3

    Thank you, for this amazing tutorial!!!💖

    • @ShiftClickLearn
      @ShiftClickLearn  2 года назад +2

      You are very welcome WH!

    • @Kr3pi_
      @Kr3pi_ 2 года назад +1

      @@ShiftClickLearn 💖💖

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

    this is super helpful 'cuz I have some shown variables in my game and when the game stops they go over the thumbnail. I just used set ghost effect to 100

    • @ShiftClickLearn
      @ShiftClickLearn  2 года назад +2

      Nicee, glad it was helpful! :D

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

      @@ShiftClickLearn even though im so late to watch the video it's been almost a year

  • @monicadua7
    @monicadua7 3 года назад +2

    Thos is really very helpful for making an online multiplayer game in whocj you want to show the number of people online or whether a particular person id online or not(as soon as the person clicks the stop sign he/ she is considered offline)

  • @DiamondRBXIsARat
    @DiamondRBXIsARat 2 года назад +1

    this is extremely useful! However, this only works when people click the stop sign. This is very unfortunate for me because I'm making something that checks the amount of players online, but if you simply press the green flag again you can make the players online variable go up infinitely.

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

      I had the same problem

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

      And I deleted that variable :(

  • @dav1gamer287
    @dav1gamer287 2 года назад +2

    this remember me the stop button from the old scratchs

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

    i made a game that restarts itself when you click the stop button
    so can't stop the game

    • @ShiftClickLearn
      @ShiftClickLearn  2 года назад +2

      now that's one way to keep the players playing

    • @scratchcoder9999
      @scratchcoder9999 2 года назад +1

      Players with the Scratch Addons browser extention: PAUSE
      People who are bored: *Leaves the game on idle*

  • @missileeditz
    @missileeditz 3 года назад +1

    you. are. a. LIFE SAVER.

  • @rubycassidy8911
    @rubycassidy8911 2 года назад +2

    this was really helpful, here's a like

  • @WrynneBow
    @WrynneBow 2 года назад +1

    this is probably a rlly dumb question, but how would u make the part where it slides down s l o w e r? i changed the numbers to stuff that also makes sense, but it just glitched a little so idk wut to do... 🤨

  • @MagicBelial
    @MagicBelial 3 года назад +1

    WOW very nice.
    Such a cool and nice idea.

  • @galaxywolf_XD
    @galaxywolf_XD Год назад +2

    Thank you this will help for my horror- I mean simulator game :D

  • @BigBroO521
    @BigBroO521 2 года назад +1

    i have a question, how do you do the same thing as the thumbnail sliding onto the screen but when you close it it slides down?

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

      Hmm, I don't know off the top of my head!

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

      I did that, just when green flag clicked repeat 12 change Y by -30

  • @Sonboxcool6972
    @Sonboxcool6972 Год назад +2

    1:08

  • @cosmocode75
    @cosmocode75 2 года назад +1

    Me before checking how this actually works: When green flag clicked: forever: reset timer
    Me after checking how this actually works: Finally I can have floating buttons using sin and cos math and a little thumbnail at the end! Yay!

  • @Slippysnake2
    @Slippysnake2 3 года назад +2

    'woahhh I'm commenting on my own videoooo'
    -shiftclicklearn 2021

  • @unixity_WasTaken
    @unixity_WasTaken 2 года назад +2

    I would do a when timer is greater than 0.001 and on the green flag clicked I would do a forever loop resetting the timer.

  • @sirchair199
    @sirchair199 3 года назад +1

    @ShiftClickLearn is there any way to do this multiple times?
    Edit: I have found a way to make this into a loop I have used a reset time and a another forever loop setting the var to timer I made a broadcast called "use blocks" and made a block for separate scripts so when the sprite receives the broadcast you can use the blocks, hope this helps!

    • @sirchair199
      @sirchair199 3 года назад +1

      Do I use a reset timer when a button is pressed to make this a loop?

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

      Hm, I really don't know off the top of my head!

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

      @@ShiftClickLearn Its ok now I know how to do it :D

  • @svgodytv6078
    @svgodytv6078 3 года назад +1

    I have an EZ method. That won't contain Variables
    When the green flag clicked--switch costume to FLAG
    Another Script
    When green flag clicked--Forever--reset timer (Should be inside the forever)
    Another script-- when timer is > 0.1 ( This block is available in Events)-- switch costume to STOP
    I think This will work without a variable
    Thank you :)

  • @BLUjay065
    @BLUjay065 2 года назад +1

    this is helpful for me, thanks so much!

  • @MarcusCornell-d3e
    @MarcusCornell-d3e 11 месяцев назад

    YOU'VE HELPED ME SO MUCH!

  • @smolmole
    @smolmole 3 года назад +1

    Also there's an easier way to do this guys just put the reset timer in a forever loop and if the timer is greater than 0.1 mean it didn't reset meaning you stopped the project then trigger it

    • @smolmole
      @smolmole 3 года назад +1

      Credits to here ruclips.net/video/BDV5IhDXWp4/видео.html

    • @ShiftClickLearn
      @ShiftClickLearn  3 года назад +1

      Thanks for the tip!

  • @angelx9124
    @angelx9124 2 года назад +1

    helped me out, a lot! thank you man

  • @Mxnchee
    @Mxnchee 4 месяца назад +1

    im using penguinmod so i already have a when stop sign clicked block

  • @Anonymos-m2l
    @Anonymos-m2l 4 месяца назад

    Oh I knew this understand this till now thank you now I understand the scratch science I just behind it!!!!!!!!!

  • @davidc0815
    @davidc0815 2 года назад +2

    Your the best thank you so much

  • @darrickhans9478
    @darrickhans9478 3 года назад +1

    Woah! I even used that in my platformer (that platformer was for my tutorial)!

  • @Yeahwecanplaythat
    @Yeahwecanplaythat 2 года назад +1

    thanks boi im using this for my first project

  • @michaelchan666
    @michaelchan666 2 года назад +1

    Awesome editing!

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

    hi! im new here so idk about this channel but thanks for the idea as i needed this feature in my whole life!

  • @vedant6902
    @vedant6902 3 года назад +3

    This is helpful for my Fortnite project

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

    Good for my thumbnails, thx!

  • @lilycreeper5246
    @lilycreeper5246 3 года назад +1

    Or you can constantly reset the timer, then detect for when the timer is > 0

  • @orca7134
    @orca7134 3 года назад +1

    Nice tutorial!

  • @nathantran3342
    @nathantran3342 2 года назад +1

    thanks so much for explaining

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

    Make more tutorials it always helps me

  • @Staing017
    @Staing017 3 года назад +1

    NICE VIDEO really help me

  • @Stakkaaaah
    @Stakkaaaah 2 года назад +1

    thank you alot this really helped with my thumbnail thanks so much appreciate it

  • @anthony
    @anthony 2 года назад +1

    It doesn’t work on me it just switches to thumbnail when I pressed the green flag

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

      Are you sure you copied everything correctly? It will work!

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

      @@ShiftClickLearn I did everything right in the video but it did not work I think It might be the 0.01

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

      @@ShiftClickLearn hi

  • @harshadagorey
    @harshadagorey 3 года назад +2

    This is so helpful

  • @SammyCheez
    @SammyCheez 3 года назад +2

    That’s so cool!

  • @cosmocode75
    @cosmocode75 2 года назад +2

    ShiftClickLearn: Releases a new video
    17.4 + Subscribers: OOOOOOOOOOOO!!!!!!!!!!!!!!

  • @sbfshadoe9918
    @sbfshadoe9918 3 года назад +3

    4:26 e🅱️ic XD

  • @FatfatGD
    @FatfatGD 3 месяца назад

    Thank you for helping me out. Im making a thumbnail for my game cookie clicker and i need to use a tutorial❤

  • @jb3nn3tt
    @jb3nn3tt 2 года назад +2

    time to rickroll scratch

  • @Master-tt8xs
    @Master-tt8xs Год назад

    thank you, I'm gonna use this on a project so it can hide health variables when the stop button is hit and the thumbnail shows!

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

    Thanks bro, it's very useful

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

    Thank you for helping me in scratch god bless you 💕💕🙏🙏

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

    if don't have variables, just use the reset timer contently reset to 0.

  • @saatvikbaggam7539
    @saatvikbaggam7539 2 года назад +3

    so helpful

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

    Thankyou, It is pretty cool.

  • @SomeGoatedPerson
    @SomeGoatedPerson 2 года назад +1

    Thanks, you got a sub and like!

  • @harshathirimanna
    @harshathirimanna 3 года назад +3

    good idea

  • @highpheonixstudios1621
    @highpheonixstudios1621 3 года назад +1

    Griffptach made a lemon shooter tutorial right?Im adding a shop to it so could you a shop tutorial?Pleaaaase

  • @Pler.
    @Pler. 2 года назад +2

    good tutorial

  • @Kent1234-w1k
    @Kent1234-w1k Месяц назад

    you can make it like this also: when green flag clicked, say hi! forever reset timer. when timer > 0 say 12345

  • @MinecraftCrup
    @MinecraftCrup 3 года назад +2

    Thank you so much

  • @windows_1.0
    @windows_1.0 2 года назад +1

    this is really helpful, but when it slides down it seems to glitch back and forth

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

      Hmm, did you copy the movement code? I don't think it should move back and forth.

  • @dogoe6675
    @dogoe6675 5 месяцев назад

    U might be the next Griffpatch :D Keep up the good work!

    • @ChatterDoesMatter
      @ChatterDoesMatter 5 месяцев назад

      thats impossible, griffpatch is the best, but yeah this guy is still an xpert

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

    can[t you do a "when green flag clicked forever reset timer" and then just "put an if time > 0"

  • @noobplayer5864
    @noobplayer5864 2 года назад +2

    Thank you

  • @銃翼
    @銃翼 3 года назад +1

    lol
    he saying "WOOOOOW IM COMMENTING ON MY OWN VIDEOOOOOOOO"

  • @LairDojoma
    @LairDojoma Месяц назад

    I wonder how much you can improve from how you are which is already crazy good but to like hacker level.

  • @twdneganfan4725
    @twdneganfan4725 2 года назад +1

    This is good in all but you can just put forever reset timer, when timer 0, do what you want

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

      The reason I didn't do that is because some functions use the timer as a variable, and resetting the timer will break them.

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

      @@ShiftClickLearn You can use "days since 2000."

  • @jongaming5637
    @jongaming5637 2 года назад +1

    Thanks!

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

    Omg thank you so much !!! This is gonna be super useful for my project . You're a lifesaver

  • @slicerthe84th
    @slicerthe84th 3 года назад +1

    I see my scratch editor as 2.0 bc of the scratch addons config

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

    But if you double-click that stop sign it would stop saying "Stop Sign".

  • @buckIin
    @buckIin 3 года назад +1

    Amazing!

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

    yes, you did explain it well :)

  • @bryanhoangbach2255
    @bryanhoangbach2255 2 года назад +2

    WAIT, why is the sprite named d o g? A joke?

  • @oyjuk9192
    @oyjuk9192 3 года назад +1

    I did a normal game that when you press the stop button the button says: ¡auch!

  • @dksoaofoci
    @dksoaofoci 3 года назад +2

    nice sprite name lol

  • @twdneganfan4725
    @twdneganfan4725 2 года назад +1

    Can you please do "how to make a feedback button in scratch"

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

      Hmm, what do you mean by that?

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

      @@ShiftClickLearn I think he meant to say how to make a button in your project where you can send your feedback to the creator, I think I know how.

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

      @@ShiftClickLearn I'm testing it

  • @jaganniwas826
    @jaganniwas826 3 года назад +1

    VERY VERY THANYOU

  • @FluffyKurenai
    @FluffyKurenai 3 года назад +1

    here is something funny if you have scratch addons and you pause the project both timers stop

  • @mrscratchnerd2450
    @mrscratchnerd2450 2 года назад +3

    nice video

  • @MaxJeans
    @MaxJeans 2 месяца назад +1

    That's awesome

  • @zyadamrsamir
    @zyadamrsamir 3 года назад +1

    i'm having a small problem where :
    in my game if i stop, it shows the thumbnail i made, but when i try to run the game again, i actually have to double click the green flag, so it doesn't work the first time i click it, it just glitches :P
    if anyone has a solution to this problem please tell me, i would appreciate it a ton!
    edit : nvm i fixed it sorry :P

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

      I'm glad you fixed it!

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

      @@ShiftClickLearn thanks! i may have lost a couple brain cells but its ok

  • @williamovens3814
    @williamovens3814 2 года назад +2

    life with scratch

  • @W.D.Gaster404
    @W.D.Gaster404 Год назад

    what about cats??