{ }codelper

Learn with Craykon tiles

Place tiles, run them, and check. No sign-up needed; your progress is saved on this device.

If you have used block coding such as Scratch, this will feel familiar. If you are new, that is fine too. You go step by step, from moving a character to making a game.

Chapter 1 First steps

Put a character in the scene and make it talk and move.

  1. 1Put Lara on the scenePut a character object on the scene and make it speak with one tile.objectsay
  2. 2When startedPlace the event tile "when started" yourself and attach tiles under it.eventwhen started
  3. 3MovingMove Lara right, left, up and down, and make her walk to a place you choose.move bymove toposition
  4. 4Tiles run from top to bottomTiles run one by one from the top. If you change the order, what happens changes too.order
  5. 5WaitingMake the script rest for a moment between tiles. You can show words one after another.wait

Chapter 2 Tap and move

Make things happen when you tap or press a key.

  1. 6When tappedMake something happen when you tap Lara.when tapped
  2. 7When a key is pressedMake Lara move when you press a key on the keyboard.when key pressed
  3. 8Several eventsPlace several event tiles on one object.when startedwhen tappedwhen key pressed
  4. 9Sound and animationPlay a sound, and make Lara jump or cheer.play soundplay animation

Chapter 3 Repeating

Make the same thing happen many times.

  1. 10Repeat a number of timesRepeat the same thing a set number of times.repeat
  2. 11ForeverRepeat without end until it is stopped.forever
  3. 12TurningTurn Lara a little at a time to make her spin.turnrepeat
  4. 13A repeat inside a repeatPut a repeat tile inside another repeat tile.repeat

Chapter 4 If

Do different things at different times.

  1. 14IfDo the tiles inside only when a condition is true.ifcomparing
  2. 15ElseDo one thing when the condition is true and another thing when it is not.ifelse
  3. 16Touching?Find out if you are touching another object.touching?when touching
  4. 17The edgeFind out if you are touching the end of the scene.touching edge?when touching edge
  5. 18Is a key held down?Move smoothly while a key is held down.key pressed?forever

Chapter 5 Remembering (variables)

Remember values that change, like a score.

  1. 19Making a variableMake a variable, a box that holds a value.variables
  2. 20Raising the scoreIncrease the number in a variable.variablesincrease by
  3. 21The scoreboardKeep showing a variable's value in the corner of the scene.scoreboardvariables
  4. 22Random numbersPick a number that is different every time.random numbers

Chapter 6 Your first game

Put together what you have learned and finish a game.

  1. 23A catching gameMove Lara and catch the Basket.key pressed?when touchingvariables
  2. 24A time limitEnd the game when a set time has passed.time passedstop all
  3. 25Ending and restartingTell the player if they won, and let them start again in the middle of a game.ifelserestart

Chapter 7 The console and values

Work with numbers, text, calculations and input on the console, a screen that writes text.

  1. 26Adding the consoleAdd the console object to the scene and write text on the screen with the write tile.write lineorder
  2. 27CalculatingAdd, subtract, multiply and divide numbers, and join text.calculatingjoining text
  3. 28Getting inputTake a value that the user types and use it.inputto number
  4. 29Working with textMeasure the length of text, reverse it, and take out one character.textlength

Chapter 8 Lists

Gather several values in one row and work with them.

  1. 30Making a listGather several values in one row and take them out by position number.listposition
  2. 31Repeat for eachTake the values of a list out one by one, from first to last, and do something with each.repeat for eachlist
  3. 32Finding and sortingAsk whether a value is in a list, and put a list in order.hassortingjoining

Chapter 9 Functions

Give a name to a group of tiles you use often.

  1. 33Calling a functionGive a group of tiles a name, and use it by calling the name.functioncalling
  2. 34Passing valuesPass a value when you call a function, so that it works differently each time.parameterpassing values
  3. 35Returning a valueA function gives the value it calculated back to the place that called it.returnfunction

Chapter 10 Many objects together

Objects broadcast to each other, and clones let you move many at once.

  1. 36BroadcastingOne object broadcasts, and another object hears it and moves.broadcastwhen I receive
  2. 37ClonesAn object makes another one just like itself.clonewhen I start as a clonedelete
  3. 38Your second gameMake a game where you catch falling fruit.clonebroadcastwhen touching

Solve tile problems →