How to make a shop in Scratch.

Sdílet
Vložit
  • čas přidán 5. 02. 2023
  • How to make a shop in Scratch | Tutorial. #shorts #coding #scratch #tutorial #programming

Komentáře • 176

  • @AndevOG
    @AndevOG Před rokem +164

    tip: instead of doing "(variable = 50) or (variable > 50)" try doing "(variable > 49)" cause it's shorter and detects if it is 50 or higher!

    • @ominousplayer
      @ominousplayer Před rokem +16

      fr why don’t people do that, it’s so much faster

    • @samuraigaming0
      @samuraigaming0 Před rokem +9

      @@ominousplayer I regularly use it myself but its only effective using integers, say we have 5.01 and its going to detect if its 6 or higher it would return false while if we put higher than 5 it would return correct. While its obviously possible to just put higher than 5.999 to counter this most people just use 5 and higher to make it less messier

    • @AndevOG
      @AndevOG Před rokem +2

      @@samuraigaming0 ok here is a much worse way to do it "reset timer, wait until timer = 5.99, if var > timer then"

    • @Rhidayah
      @Rhidayah Před rokem +1

      There is no >=50 ?

    • @AndevOG
      @AndevOG Před rokem

      @@Rhidayah there is (value) > (value)

  • @user-nv8nq4gd7i
    @user-nv8nq4gd7i Před rokem +55

    1 bread for 50$: Zimbabwe vibes

  • @quantumfru
    @quantumfru Před měsícem +10

    Tip: Add [wait {0.3} seconds] to prevent you from accidentally buying a lot.

    • @gamingwithraien4639
      @gamingwithraien4639 Před měsícem +1

      Here's a better way:
      wait until (
      not (
      (mouse down) or
      (touching mouse)
      )
      )
      the reason we use not (x or y) is because it only activates if x and y is false

    • @quantumfru
      @quantumfru Před měsícem

      Ty for the suggestion

  • @I_hate_Yanis
    @I_hate_Yanis Před rokem +6

    Realistic :
    Fowever (set money =0)

  • @Marshmellow_Cat
    @Marshmellow_Cat Před rokem +7

    Instead of the big > 50 or = 50, just use > 49

  • @TheBestBaguette
    @TheBestBaguette Před rokem +5

    Very nice

  • @Anqi-ew1lc
    @Anqi-ew1lc Před 27 dny +2

    Tip : Add ( wait until < not < mouse down? > > ) to ensure you don't click it once and lose ALL of your money accidentally.

    • @Muho_is_me
      @Muho_is_me Před 13 dny +1

      Or you know... Use when sprite clicked

    • @Anqi-ew1lc
      @Anqi-ew1lc Před 13 dny +1

      @@Muho_is_me NO I HATE THAT BLOCK

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      @@Anqi-ew1lc whi?

  • @cybertrevor9466
    @cybertrevor9466 Před měsícem +1

    Bro! you are the best!

  • @Alcatonic
    @Alcatonic Před 10 měsíci +4

    Something i learned is that when you want to upgrade a item like if your making a rpg and they get a better sword in which does 10 instead of 5 dmg you should give it 0.01 seconds before showing when you look at your items or something because i ran into a couple of bugs where it goes too fast, doesnt register and just stresses me out about it bugging with other items or something

    • @Anqi-ew1lc
      @Anqi-ew1lc Před 27 dny

      Tip for your tip : NEVER USE WAIT 0.01 or 0.001, this does the same thing as wait 0 so it saves like 0.1 seconds so thats cool? :)

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      ​@@Anqi-ew1lc 0 seconds also does something
      Im not what this comment is meaning i think he was just talking about a weird edge case that happens in his game but just so you know wait 0 seconds actualy waits a single Frame
      İm not sure if this helps anything but good to know i guess
      I always use it when something happens before something that it shouldnt

  • @elishaakoson7509
    @elishaakoson7509 Před 6 měsíci +2

    Thank You :D

  • @BouncerzOfGeometryDash
    @BouncerzOfGeometryDash Před měsícem +3

    “How did you become poor?”
    *”i clicked a flag”

    • @SamiSaba2
      @SamiSaba2 Před 2 dny

      Conclusion: don’t click flags

  • @GojoLuffyNaruto
    @GojoLuffyNaruto Před 4 dny

    Thanks!!:)

  • @ImThe0GVoice
    @ImThe0GVoice Před měsícem

    You: My item cost 50$ Me: FOR FRICKING BREAD??!

  • @yngbro
    @yngbro Před 5 měsíci +1

    14:01 his stomach looks like sonic-

  • @christiangomez456
    @christiangomez456 Před rokem +6

    this type of stuff is easy ngl

    • @whatisthis6259
      @whatisthis6259 Před 10 měsíci +1

      It’s for new comers. And everyone sees things in more or less difficulty than others

  • @CamdynWhitaker
    @CamdynWhitaker Před měsícem

    Thanks dude!

  • @yngbro
    @yngbro Před rokem +14

    TYSM! I needed this, don’t get why it’s money > 50 when it should be money > 49 but really helpful, instant like

    • @ScratchTuto
      @ScratchTuto  Před rokem +5

      Yeah it was a dumb mistake. But im happy if this video helped you🥰

    • @yngbro
      @yngbro Před rokem +5

      @@ScratchTuto it defintley did, I might subscribe just for this one vid!

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      ​@@ScratchTutoanother dumb mistake was not using the when sprite clicked so that your money wouldnt die when you hold

  • @Abhinava_Playz_YT
    @Abhinava_Playz_YT Před měsícem

    for more idea:put a sound of buying like TING
    or what u want

  • @jayakrish5999
    @jayakrish5999 Před 3 měsíci +1

    it is amazinggggggggggggggggggg

  • @CougarXWGM
    @CougarXWGM Před rokem +9

    It was simple and awesome!

    • @ScratchTuto
      @ScratchTuto  Před rokem +3

      THX

    • @whatisthis6259
      @whatisthis6259 Před 10 měsíci

      @@ScratchTutocan you do a tutorial on how to use text instead of that base vanilla variable. Like. An art of money instead of just “show variable”

    • @whatisthis6259
      @whatisthis6259 Před 10 měsíci

      @@ScratchTutohard to explain but basically like using text to have the value and show a sprite text for the value so it looks better

    • @ScratchTuto
      @ScratchTuto  Před 10 měsíci

      @@whatisthis6259yeah i know what you mean and thats a good idea and i would make a tutorial on it but i dont make videos anymore

    • @whatisthis6259
      @whatisthis6259 Před 10 měsíci +1

      @@ScratchTuto I understand, I’ll look somewhere else

  • @domddev
    @domddev Před 4 měsíci

    using lists and clones would make this thing easier

  • @SHERMANATOR48
    @SHERMANATOR48 Před rokem +1

    you don't need that many blocks, you can easily simplify it

  • @Melodicxy
    @Melodicxy Před rokem +2

    Cool

  • @Tango3695
    @Tango3695 Před měsícem

    Just use when sprite is clicked instead of mouse pointer and mouse down it’s way cleaner

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      Yeah im surprised no one is saying them

  • @Gameclipsx-rz9bv
    @Gameclipsx-rz9bv Před měsícem

    Tip: instead of the or block you should just do variable1>variable2-1.

  • @Luutinen123
    @Luutinen123 Před rokem +1

    Nicee

  • @Jeremy-Reacts
    @Jeremy-Reacts Před 9 měsíci

    Instead of doing the "forever - if mouse down and touching mouse pointer" all you need to do is grab the when sprite clicked block from the Events category.

  • @MUHAMMADADAMFEERASBINAIZATMoe
    @MUHAMMADADAMFEERASBINAIZATMoe Před 11 měsíci

    thanks now i can program this in scratch

  • @Mblambatuja
    @Mblambatuja Před rokem +4

    Nice and good fir beginners! But you could have just done money > 49 instead of money = 50 or money > 50 still good tutorial tho keep it up!

    • @bb22075
      @bb22075 Před rokem

      Here is the code:
      if > then
      change [score v] by ((0) - (bread price))
      change [bread price v] by (25)
      change [bread v] by (1)
      Try fixing your shop with this!😊

    • @NowNormal
      @NowNormal Před rokem

      only works with integers
      Edit: i fixed the typo

  • @Logangamez8989
    @Logangamez8989 Před 20 dny

    Scratch: *has a block for “isClicked”*
    Him: If (mouseOver? && mouseDown?)

  • @Xoin-4kj
    @Xoin-4kj Před 15 dny

    Thanks for this even tho I know how to make one it’s just an easier way to make it❤️

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      Just use;
      When this sprite clicked
      İf money > 49
      Change bread by 1
      Change money by -50
      When flag clicked
      Set bread to 0
      Set money to 100
      Its alot more smaller and it also fixes the issue of acsedently buying way too much breads becouse you holded

  • @Purejedino1
    @Purejedino1 Před 26 dny

    love you

  • @margarettezamora5085
    @margarettezamora5085 Před 5 měsíci

    i saw a safari now is working yaaaaaaaay🎉

  • @user-qz4vu5xs6c
    @user-qz4vu5xs6c Před 4 měsíci

    Please make horizontal

  • @sieugach
    @sieugach Před rokem

    You can change the wait .1 sec to wait until not mouse down and place that wait block on top of the cange bread by 1 and change money by -50

  • @Sethanon
    @Sethanon Před rokem

    You could also do when this sprite clicked, if money is greater than 49 then.

  • @rubysmith5007
    @rubysmith5007 Před rokem +3

    I can’t see the screen it’s way to blurry

    • @ScratchTuto
      @ScratchTuto  Před rokem +2

      When i watch it in my pc its fine but im also trying to make the quality better in future so sorry for that

    • @windest22
      @windest22 Před rokem

      @ScratchTuto when i watch a short ,the whole half of short goes up

  • @ZaeNonQ
    @ZaeNonQ Před rokem +15

    1 bread is 50$? Thats expensive ngl

    • @ScratchTuto
      @ScratchTuto  Před rokem +5

      Yeah big inflation

    • @ZaeNonQ
      @ZaeNonQ Před rokem +4

      @@ScratchTuto pov : covid

    • @Breadclips0
      @Breadclips0 Před rokem +5

      its An Apple IBread

    • @ZaeNonQ
      @ZaeNonQ Před rokem +3

      @@Breadclips0 pov : apple made bread

    • @FrenchTopHat
      @FrenchTopHat Před rokem +2

      ​@@ZaeNonQ bro, stop acting like you get 5$ a month, thats literally the cheapest bread ive seen

  • @Browncupcakesyt
    @Browncupcakesyt Před rokem

    I subscribe

  • @BlueTheCatYT
    @BlueTheCatYT Před rokem +2

    I found a easier way to do it but i have to video link it

  • @Yuki_yora
    @Yuki_yora Před 10 měsíci

    How can we interact with the item after buying it?

  • @bonehair3211
    @bonehair3211 Před měsícem

    0:00

  • @user-tz5lc3xe2d
    @user-tz5lc3xe2d Před 4 měsíci

    It's easier in penguinmod because of new blocks

  • @Alotsis
    @Alotsis Před rokem

    0:01

  • @cougher9000
    @cougher9000 Před 10 měsíci

    if you're using more than a item, use lists instead of variables for the price

    • @wuiuoluminum2
      @wuiuoluminum2 Před 9 měsíci

      Hey, that's a pretty good idea!

    • @cougher9000
      @cougher9000 Před 9 měsíci

      @@wuiuoluminum2 also, if your using clones for buttons, use "for all sprites" instead of "for this sprite only" because if you use a local variable/list (for this sprite only) clones will have different value to the main sprite and different clones, tho if your using stamps (which most people dont do) use a local variable/list

  • @--4169
    @--4169 Před 9 měsíci

    1:15

  • @Charlie_Edits11
    @Charlie_Edits11 Před 11 měsíci

    Thats one expensive bread 🤣

  • @rasheedalatif6987
    @rasheedalatif6987 Před rokem

    Ok

  • @solsrngbouboodoubee
    @solsrngbouboodoubee Před měsícem

    How to do mobile controls

  • @shauryavardhan2556
    @shauryavardhan2556 Před rokem

    Bread 👍

  • @krisdevos8452
    @krisdevos8452 Před 6 měsíci

    Ok that easy i knew that always
    When this spire clicked
    If money is more than (>) 50/49
    Then
    Broadcast: bread give (or you can have a variable which you use)
    Change money by -50
    Boom done.
    This is for mobile not computer btw

  • @Iran_mapping930
    @Iran_mapping930 Před měsícem

    When this sprite clicked
    If Money = 50 or Money > 50
    Change Money by -50
    Change bread by 1

  • @BreadOriginal
    @BreadOriginal Před měsícem

    On mobile??

  • @saba1percent
    @saba1percent Před 7 měsíci

    yo i tried this it worked but when i bought item 2nd time it didnt work it when i collected money it automatiacally buyed

  • @mloopy461
    @mloopy461 Před měsícem

    All i all i all i all i wanted was a bit o bred
    (Start)

  • @YaBoiMatthewz
    @YaBoiMatthewz Před 4 měsíci

    I want to make a off brand Fortnite game whats the best way i can run a item-shop

  • @Ca13b4
    @Ca13b4 Před 17 dny

    Theres an eisier way

  • @thebROhsho
    @thebROhsho Před 4 měsíci

    i dont undersatnd how to get the vairable to turn into to a block

  • @FirzadAmsyar
    @FirzadAmsyar Před měsícem

    For phone????

  • @artwork-studios
    @artwork-studios Před 6 měsíci

    Inflation be like:

  • @edgarbaumann6002
    @edgarbaumann6002 Před 7 měsíci

    it works! i spent hour trying to figure it out my self

    • @user-qz7zs2cz7x
      @user-qz7zs2cz7x Před 2 měsíci

      YOU SPENT A HOUR ON THIS, YOU ARE SO BASIC THAT YOU CANT EVENT FOLLOW SCRATCH'S TEAM TUTORIALS

  • @SBSfan
    @SBSfan Před 7 měsíci

    {when green flag is clicked} {when sprite clicked}
    {set [money] to (100)} {if then}
    {set [bread] to (0)} {change [money] by (-50)}
    e {change [bread] by (1)}

  • @asparagus67
    @asparagus67 Před rokem +3

    I ruined the 666 likes

  • @TheMusicGuy72
    @TheMusicGuy72 Před 3 měsíci

    The bread variable is just useless 💀

  • @just_hanys
    @just_hanys Před měsícem

    why is it in a forever loop? Isn't it better and easier to just put "when this sprite clicked" ?

    • @Matiu42
      @Matiu42 Před měsícem

      It is trying to make it so that "whenflag clicked" not "when this Sprite clicked" 😅

  • @Cleacat
    @Cleacat Před rokem

    You dont need to put = and > just make ,money > 50 - 1,

  • @Whateverwhatever648
    @Whateverwhatever648 Před rokem

    I wan’t to make online shop

  • @Ook124e
    @Ook124e Před 13 dny +1

    It didn’t work on ipad

  • @user-hg4um5ix3r
    @user-hg4um5ix3r Před rokem

    siuu

  • @Wesley3268
    @Wesley3268 Před rokem

    why not to use money>49 boolean instead? it's easier

  • @hemanthaldkar9599
    @hemanthaldkar9599 Před měsícem

    Money going to negetive 😢

  • @graybaconlikethesadness
    @graybaconlikethesadness Před 6 měsíci

    There's no mouse pointer block

  • @Muho_is_me
    @Muho_is_me Před 13 dny

    Why not just;
    When sprite clicked
    İf money bigger then 49
    Change bread by 1
    Change money by -50
    Its alot faster and you wont waste all your money when you hold
    *You had one job and failed miserebly*

    • @Muho_is_me
      @Muho_is_me Před 13 dny

      Oh and have a when flag clicked to reset the varilables

  • @spealded
    @spealded Před rokem

    🗿

  • @andrewkelley4560
    @andrewkelley4560 Před rokem

    more code for you Forever if money= -1 or Money

  • @Sonicomgea
    @Sonicomgea Před rokem

    100%

  • @DemianCrackOriginal
    @DemianCrackOriginal Před 4 měsíci

    just use money > 49

  • @user-EPEWWO919K
    @user-EPEWWO919K Před 2 měsíci

    money

  • @beetlegivesmeluck
    @beetlegivesmeluck Před 8 měsíci

    IT DIDNT WORK
    YOU DIDNT SHOW THE FULL SCREEN

  • @nocontext69420
    @nocontext69420 Před rokem

    Dosn't work the money is showing up and when i click nothing happens 😡

  • @HomePonyLulu
    @HomePonyLulu Před 9 měsíci

    ...

  • @megahakerekk
    @megahakerekk Před rokem

    Good tip: money>49

    • @louisyama9145
      @louisyama9145 Před rokem

      What if you can have decimal numbers for money (ex: 49.5), then you would get bread despite having 0.5 less money than needed.
      I think rounding the money down would fix the problem (if there is a way to round down in scratch)

    • @megahakerekk
      @megahakerekk Před rokem

      @@louisyama9145 money>49.9😳

  • @DanielTrpcevskiShorts
    @DanielTrpcevskiShorts Před 9 měsíci

    You can just put ( if money > 49 )
    Change ( bread ) by 1
    Change ( money ) by -50
    Easy!

  • @Joethefish
    @Joethefish Před rokem

    Do real programming

  • @SplattackerOfBLT
    @SplattackerOfBLT Před měsícem

    you take too short

  • @bolikobg1034
    @bolikobg1034 Před rokem

    Bro tf who needs it i have a game in scratch retail tycoon 2 the owner is bolkata and its me just try it

    • @ScratchTuto
      @ScratchTuto  Před rokem +1

      ?? maybe someone that is learning scratch

    • @bolikobg1034
      @bolikobg1034 Před rokem

      @@ScratchTuto ok but can you check my game on scratch its Retail Tycoon 2. The owner name is bolkata and its me pls

    • @windest22
      @windest22 Před rokem +2

      @@ScratchTuto example:me

  • @Shadow-dd1qp
    @Shadow-dd1qp Před 5 dny

    meh

  • @Ermthesigma
    @Ermthesigma Před měsícem

    F10 doesn’t work guys don’t use this goof

  • @natalieshillitto9675
    @natalieshillitto9675 Před 2 měsíci

    Wtf nobody needs this

  • @BlackRobScratch
    @BlackRobScratch Před 6 měsíci

    Very nice

  • @allietaylor6361
    @allietaylor6361 Před 10 měsíci

    0:00

  • @YaBoiMatthewz
    @YaBoiMatthewz Před 4 měsíci

    I want to make a off brand Fortnite game whats the best way i can run a item-shop