6) The most important instructions of coding / Les scripts les plus importants

  • You can find very important commands under menu "CONTROL"

    Tu peux trouver les commandes les plus importantes dans le menu  "Contrôle"

     

    The most important instruction of coding: IF

    The most important instruction of coding is: IF.

    IF SOMETHING HAPPENS THEN DO THIS   : With this you can choose what the program has to do

    you can put the condition (look the hole exagon). You can find one under "SENSORS" or "OPERATORS"

    • IF IT'S TOUCHING THE COLOUR GREEN...
    • IF IT'S TOUCHING THE EDGE...
    • IF IT'S TOUCHING THE POINTER OF THE MOUSE...
    • IF IT'S TOUCHING (OR CLOSE) TO ANOTHER SPRITE..
    • IF LOUDNESS IS MUCH THEN 50... to build this you have to use the green tool ">" under "operators", then add paramaters

    There also is "IF SOMETHING HAPPENS THEN DO THIS ELSE DO THAT"

    Repeat

    Reapet a group of instructions for a number of times. You can also use "Forever"

             

    La consigne la plus importante du codage : SI

    La consigne de codage la plus importante est : SI.

    SI ..... ALORS .....!   C'est là que tu peux dire au programme ce qu'il doit faire

    Tu peux trouver le "si" dans les  "CAPTEURS" ou les "OPERATEURS"

    • SI la couleur verte est touchée ...
    • SI bord touché ...
    • SI pointeur de la souris touché ...
    • SI distance avec un autre lutin = ...
    • Si volume sonore est plus grand que ... alors ... pour cela il te faut l'opérateur vert ">" et il faut ajouter les nombres de ton choix.

    Il y a aussi "Si ... alors ..., sinon ..."

    Répéter

    Répéter un groupe d'instructions pour un certain nombre de fois. Tu peux aussi utiliser "Répéter indéfiniment" ce qui veut dire répéter sans s'arrêter.