No video

How to make a shop in Scratch.

How to make a shop in Scratch | Tutorial. #shorts #coding #scratch #tutorial #programming

Пікірлер: 199

  • @ameridev
    @ameridev Жыл бұрын

    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

    Жыл бұрын

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

  • @samuraigaming0

    @samuraigaming0

    Жыл бұрын

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

  • @ameridev

    @ameridev

    Жыл бұрын

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

  • @Rhidayah

    @Rhidayah

    Жыл бұрын

    There is no >=50 ?

  • @ameridev

    @ameridev

    Жыл бұрын

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

  • @user-nv8nq4gd7i
    @user-nv8nq4gd7i Жыл бұрын

    1 bread for 50$: Zimbabwe vibes

  • @whatisthis6259

    @whatisthis6259

    Жыл бұрын

    Lol

  • @derrikwalker7548

    @derrikwalker7548

    11 ай бұрын

    I’ll make Zimbabwe 1 bread for 600 million

  • @OtterScratcher

    @OtterScratcher

    8 ай бұрын

    villager vibes

  • @user-qc3tx7lw7u

    @user-qc3tx7lw7u

    Ай бұрын

    Here in Serbia it's actually 50 of our currency lol it's basically 50 cents

  • @Circle-s4t
    @Circle-s4t3 ай бұрын

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

  • @gamingwithraien4639

    @gamingwithraien4639

    2 ай бұрын

    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

  • @Circle-s4t

    @Circle-s4t

    2 ай бұрын

    Ty for the suggestion

  • @DexCrE2
    @DexCrE214 күн бұрын

    Simpler script: When sprite clicked: if = 50 or greater than 50 then change by (-50) else say

  • @BouncerzOfGeometryDash
    @BouncerzOfGeometryDash3 ай бұрын

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

  • @SamiSaba2

    @SamiSaba2

    Ай бұрын

    Conclusion: don’t click flags

  • @ritubajaj7333

    @ritubajaj7333

    4 күн бұрын

    🎉😂

  • @Treewha998
    @Treewha9984 күн бұрын

    Now make an auto sorting inventory with 24 slots all center aligned, with different actions and animations tutorial pls. 😊

  • @TheBestBaguette
    @TheBestBaguette Жыл бұрын

    Very nice

  • @CougarXWGM
    @CougarXWGM Жыл бұрын

    It was simple and awesome!

  • @ScratchTuto

    @ScratchTuto

    Жыл бұрын

    THX

  • @whatisthis6259

    @whatisthis6259

    Жыл бұрын

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

    Жыл бұрын

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

    Жыл бұрын

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

    Жыл бұрын

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

  • @yngbro
    @yngbro Жыл бұрын

    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

    Жыл бұрын

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

  • @yngbro

    @yngbro

    Жыл бұрын

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

  • @Muho_is_me

    @Muho_is_me

    2 ай бұрын

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

  • @I_hate_Yanis
    @I_hate_Yanis Жыл бұрын

    Realistic : Fowever (set money =0)

  • @Qwwwis

    @Qwwwis

    17 күн бұрын

    Change Money by -40

  • @Anqi-ew1lc
    @Anqi-ew1lc2 ай бұрын

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

  • @Muho_is_me

    @Muho_is_me

    2 ай бұрын

    Or you know... Use when sprite clicked

  • @Anqi-ew1lc

    @Anqi-ew1lc

    2 ай бұрын

    @@Muho_is_me NO I HATE THAT BLOCK

  • @Muho_is_me

    @Muho_is_me

    2 ай бұрын

    @@Anqi-ew1lc whi?

  • @Real-Benny998

    @Real-Benny998

    Ай бұрын

    @@Muho_is_me It might be easier but some people like putting that instead (I like doing it because it looks cleaner, and also hitboxes)

  • @_MasterChief-117
    @_MasterChief-11713 күн бұрын

    tip: make a list instead of a variable for the bread, so you don't have to make a new variable for every item in the store

  • @Marshmellow_Cat
    @Marshmellow_Cat Жыл бұрын

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

  • @aqibshariff7558

    @aqibshariff7558

    5 ай бұрын

    ty

  • @ezprochannel2801

    @ezprochannel2801

    Ай бұрын

    For the issue, what if people has 49.5?

  • @Marshmellow_Cat

    @Marshmellow_Cat

    Ай бұрын

    @@ezprochannel2801 Well depends on if you can get money with a decimal, if the player can't possibly be able to get money in the decimal value then no need But if the player can have money in a decimal value then just use >49.9 or something like that

  • @MysteriousObjectsOfficial

    @MysteriousObjectsOfficial

    Ай бұрын

    what about putting a variable?

  • @cybertrevor9466
    @cybertrevor94663 ай бұрын

    Bro! you are the best!

  • @Goku.D.Uzumaki7
    @Goku.D.Uzumaki7Ай бұрын

    Thanks!!:)

  • @Alcatonic
    @Alcatonic Жыл бұрын

    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

    2 ай бұрын

    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

    2 ай бұрын

    ​@@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
    @elishaakoson75097 ай бұрын

    Thank You :D

  • @ImThe0GVoice
    @ImThe0GVoice2 ай бұрын

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

  • @MeloBrineOfficial
    @MeloBrineOfficialАй бұрын

    Amazing

  • @Xoin-4kj
    @Xoin-4kj2 ай бұрын

    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

    2 ай бұрын

    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

  • @yngbro
    @yngbro6 ай бұрын

    14:01 his stomach looks like sonic-

  • @jayakrish5999
    @jayakrish59995 ай бұрын

    it is amazinggggggggggggggggggg

  • @christiangomez456
    @christiangomez456 Жыл бұрын

    this type of stuff is easy ngl

  • @whatisthis6259

    @whatisthis6259

    Жыл бұрын

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

  • @CamdynWhitaker
    @CamdynWhitaker2 ай бұрын

    Thanks dude!

  • @Gameclipsx-rz9bv
    @Gameclipsx-rz9bv3 ай бұрын

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

  • @SHERMANATOR48
    @SHERMANATOR48 Жыл бұрын

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

  • @TonofSplenda
    @TonofSplenda11 ай бұрын

    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.

  • @connor_awesome6482
    @connor_awesome648223 күн бұрын

    Instead of having money equals 50 or money is greater than 50, you can just have an if money is greater than 49, it does the same thing but very slightly faster

  • @margarettezamora5085
    @margarettezamora50856 ай бұрын

    i saw a safari now is working yaaaaaaaay🎉

  • @MUHAMMADADAMFEERASBINAIZATMoe
    @MUHAMMADADAMFEERASBINAIZATMoe Жыл бұрын

    thanks now i can program this in scratch

  • @Tango3695
    @Tango36952 ай бұрын

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

  • @Muho_is_me

    @Muho_is_me

    2 ай бұрын

    Yeah im surprised no one is saying them

  • @user-qz4vu5xs6c
    @user-qz4vu5xs6c6 ай бұрын

    Please make horizontal

  • @Melodicxy
    @Melodicxy Жыл бұрын

    Cool

  • @Mblambatuja
    @Mblambatuja Жыл бұрын

    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

    Жыл бұрын

    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

    Жыл бұрын

    only works with integers Edit: i fixed the typo

  • @sieugach
    @sieugach Жыл бұрын

    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

  • @Logangamez8989
    @Logangamez89892 ай бұрын

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

  • @Abhinava_Playz_YT
    @Abhinava_Playz_YT3 ай бұрын

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

  • @Purejedino1
    @Purejedino12 ай бұрын

    love you

  • @domddev
    @domddev6 ай бұрын

    using lists and clones would make this thing easier

  • @user-qz7zs2cz7x

    @user-qz7zs2cz7x

    4 ай бұрын

    Yeps u studied for scratch

  • @ZaeNonQ
    @ZaeNonQ Жыл бұрын

    1 bread is 50$? Thats expensive ngl

  • @ScratchTuto

    @ScratchTuto

    Жыл бұрын

    Yeah big inflation

  • @ZaeNonQ

    @ZaeNonQ

    Жыл бұрын

    @@ScratchTuto pov : covid

  • @WaterPin

    @WaterPin

    Жыл бұрын

    its An Apple IBread

  • @ZaeNonQ

    @ZaeNonQ

    Жыл бұрын

    @@WaterPin pov : apple made bread

  • @Courett

    @Courett

    Жыл бұрын

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

  • @edgarbaumann6002
    @edgarbaumann60029 ай бұрын

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

  • @user-qz7zs2cz7x

    @user-qz7zs2cz7x

    4 ай бұрын

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

  • @Sethanon3000
    @Sethanon3000 Жыл бұрын

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

  • @Luutinen123
    @Luutinen123 Жыл бұрын

    Nicee

  • @Charlie_Edits11
    @Charlie_Edits11 Жыл бұрын

    Thats one expensive bread 🤣

  • @ScratchTuto

    @ScratchTuto

    Жыл бұрын

    Zimbabwe moment

  • @Charlie_Edits11

    @Charlie_Edits11

    Жыл бұрын

    @@ScratchTuto lol

  • @cougher9000
    @cougher900011 ай бұрын

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

  • @wuiuoluminum2

    @wuiuoluminum2

    11 ай бұрын

    Hey, that's a pretty good idea!

  • @cougher9000

    @cougher9000

    11 ай бұрын

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

  • @Alotsis
    @Alotsis Жыл бұрын

    0:01

  • @--4169
    @--416911 ай бұрын

    1:15

  • @rasheedalatif6987
    @rasheedalatif6987 Жыл бұрын

    Ok

  • @krisdevos8452
    @krisdevos84527 ай бұрын

    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

  • @rubysmith5007
    @rubysmith5007 Жыл бұрын

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

  • @ScratchTuto

    @ScratchTuto

    Жыл бұрын

    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

    Жыл бұрын

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

  • @bonehair3211
    @bonehair32112 ай бұрын

    0:00

  • @Browncupcakesyt
    @Browncupcakesyt Жыл бұрын

    I subscribe

  • @ScratchTuto

    @ScratchTuto

    Жыл бұрын

    thx

  • @user-tz5lc3xe2d
    @user-tz5lc3xe2d5 ай бұрын

    It's easier in penguinmod because of new blocks

  • @Iran_mapping930
    @Iran_mapping9302 ай бұрын

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

  • @BTCR99
    @BTCR99 Жыл бұрын

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

  • @youraveragerobloxian0
    @youraveragerobloxian09 ай бұрын

    {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)}

  • @user-hg4um5ix3r
    @user-hg4um5ix3r Жыл бұрын

    siuu

  • @Ca13b4
    @Ca13b42 ай бұрын

    Theres an eisier way

  • @mloopy461
    @mloopy4613 ай бұрын

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

  • @R2Matt
    @R2Matt5 ай бұрын

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

  • @shauryavardhan2556
    @shauryavardhan2556 Жыл бұрын

    Bread 👍

  • @bouboodoubee29
    @bouboodoubee292 ай бұрын

    How to do mobile controls

  • @Greeneyes12345_official
    @Greeneyes12345_officialАй бұрын

    Instead of (50 or more than 50) you could have just (more than 49)

  • @artwork-studios
    @artwork-studios8 ай бұрын

    Inflation be like:

  • @Pixelgod4
    @Pixelgod42 ай бұрын

    It didn’t work on ipad

  • @thebROhsho
    @thebROhsho6 ай бұрын

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

  • @TheMusicGuy72
    @TheMusicGuy725 ай бұрын

    The bread variable is just useless 💀

  • @asparagus67
    @asparagus67 Жыл бұрын

    I ruined the 666 likes

  • @Whateverwhatever648
    @Whateverwhatever648 Жыл бұрын

    I wan’t to make online shop

  • @Yuki_yora
    @Yuki_yora Жыл бұрын

    How can we interact with the item after buying it?

  • @Cleacat
    @Cleacat Жыл бұрын

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

  • @Wesley3268
    @Wesley3268 Жыл бұрын

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

  • @saba1percent
    @saba1percent8 ай бұрын

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

  • @andrewkelley4560
    @andrewkelley4560 Жыл бұрын

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

  • @hemanthaldkar9599
    @hemanthaldkar95993 ай бұрын

    Money going to negetive 😢

  • @just_hanys
    @just_hanys3 ай бұрын

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

  • @Matiu42

    @Matiu42

    2 ай бұрын

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

  • @DemianCrackOriginal
    @DemianCrackOriginal6 ай бұрын

    just use money > 49

  • @graybaconlikethesadness
    @graybaconlikethesadness8 ай бұрын

    There's no mouse pointer block

  • @spealded
    @spealded Жыл бұрын

    🗿

  • @BreadOriginal
    @BreadOriginal3 ай бұрын

    On mobile??

  • @FirzadAmsyar
    @FirzadAmsyar3 ай бұрын

    For phone????

  • @user-EPEWWO919K
    @user-EPEWWO919K4 ай бұрын

    money

  • @Muho_is_me
    @Muho_is_me2 ай бұрын

    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

    2 ай бұрын

    Oh and have a when flag clicked to reset the varilables

  • @nocontext69420
    @nocontext69420 Жыл бұрын

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

  • @xPlay5r
    @xPlay5rАй бұрын

    Too simple. You literally can buy a bread for all your money. Also, buyer can not understand why he can't buy it. Recommend using 2 if's to one of them to say, that you have no thats much money.

  • @megahakerekk
    @megahakerekk Жыл бұрын

    Good tip: money>49

  • @louisyama9145

    @louisyama9145

    Жыл бұрын

    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

    Жыл бұрын

    @@louisyama9145 money>49.9😳

  • @beetlegivesmeluck
    @beetlegivesmeluck9 ай бұрын

    IT DIDNT WORK YOU DIDNT SHOW THE FULL SCREEN

  • @HomePonyLulu
    @HomePonyLulu11 ай бұрын

    ...

  • @Sonicomgea
    @Sonicomgea Жыл бұрын

    100%

  • @DanielTrpcevskiShorts
    @DanielTrpcevskiShorts11 ай бұрын

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

  • @Joethefish
    @Joethefish Жыл бұрын

    Do real programming

  • @SplattackerOfBLT
    @SplattackerOfBLT3 ай бұрын

    you take too short

  • @bolikobg1034
    @bolikobg1034 Жыл бұрын

    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

    Жыл бұрын

    ?? maybe someone that is learning scratch

  • @bolikobg1034

    @bolikobg1034

    Жыл бұрын

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

    Жыл бұрын

    @@ScratchTuto example:me

  • @TheGoof759
    @TheGoof7592 ай бұрын

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

  • @natalieshillitto9675
    @natalieshillitto96753 ай бұрын

    Wtf nobody needs this

  • @cybertrevor9466

    @cybertrevor9466

    3 ай бұрын

    Shut up! He is way better than you!

  • @Shadow-dd1qp
    @Shadow-dd1qpАй бұрын

    meh

  • @BlackRobScratch
    @BlackRobScratch7 ай бұрын

    Very nice

  • @allietaylor6361
    @allietaylor6361 Жыл бұрын

    0:00

  • @R2Matt
    @R2Matt5 ай бұрын

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