MicroNugget: How to Use Lists in Scratch Programming

Share
Embed
  • Published on Nov 11, 2013
  • Not a subscriber? Start your free week. cbt.gg/2JSvupY
    CBT Nuggets trainer Tim Warner discusses how to temporarily store data for your app using lists in Scratch.

Comments • 12

  • Coder Kids
    Coder Kids Day ago

    It's 2019, and you're still helping us out :)

  • Ro - Studios
    Ro - Studios 8 months ago

    And scratch 3.0 is coming in three weeks

  • Sheep Studios
    Sheep Studios 2 years ago

    How Would I make an inventory with this?

    • Nether Co.
      Nether Co. 2 years ago

      they have a block that can delete a certain slot of the list

    • Sheep Studios
      Sheep Studios 2 years ago

      but in scratch it wont delete a specific item. it will only delete first, last or all.. they should add like

    • Nether Co.
      Nether Co. 2 years ago

      you could have it to where if you get an item it will add the name of that item to the list and when you would use it it would sense if you had that object's name in the list it would do the thing that that item would do

  • Solar Pellets
    Solar Pellets 2 years ago +1

    So it's a variable with multiple values? Or is it a way to contain multiple variables easily?

  • Max Richhart
    Max Richhart 4 years ago

    Is There A Way To Hide/Show Your List?

  • John Coghlan
    John Coghlan 5 years ago

    Oh, and I would deeply appreciate, Tim if you could find a way to do this. Some of the best pop and jazz music was composed with modal scale progressions.

    • CBT Nuggets
      CBT Nuggets  4 years ago

      @John Coghlan Thanks for the comments. Unfortunately, Tim Warner is no longer a trainer at CBT Nuggets but he did create a Scratch 2.0 training course: cbt.gg/1oXKTBc. The training may have what you are looking for. Have a great day.

  • John Coghlan
    John Coghlan 5 years ago

    Hello Tim: I am making a Scratch project. I want to get the user to identify a major scale. Then I want them to identify a modal scale (derived from that scale, ex: on C, the lydian modal scale is D,E,F,G,A,B,C.) Then I want them to pick notes on the modal scale - as the first, third and sixth. The program would then play the triads based on these root notes. This would give us a chord progression in that mode.
    To do so, I would need a choose function, and a list of the scales; a choose function, and a list of the modes; a choose function, then a list of triads formed on that modal scale. So what I hope to do is to map, say, the scale of C onto its lydian counterpart scale (by starting with D in the scale and not C), then the root notes of that modal scale onto the triads formed with the root notes (for example, the major triad or chord is the fist, third and fifth note of a major scale).
    Here's how it would look to the user. ''Pick a major scale.'' A list of major scales would appear. Then when they had chosen, the question would appear ''Pick a modal scale.'' A list of modals scales on hat major scale would appear. Then when they had chosen, the question would appear, ''Pick three notes on the scale.'' Then Scratch would play this progressin.
    So what I am asking is how to map one list onto another then onto a third list?