Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

arrow_back Plates-formes en mouvement

Transcript

One way to make this game more challenging is to make the platforms move. This screencast will walk you through the steps, then you can make your own moving platforms.

Start by experimenting with ways to get the platform to move from one position to another.

Click on the platform sprite that you want to move, and on motion.

As you’ve seen, there are many different ways to move a sprite. In Computer Science, there are usually lots of solutions to a problem. As a computer scientist, it’s your job to choose the one that you think works best. For example, you could use a “glide” block.

Or, you could move the sprite to the position that you want it to glide to, then drag out the block.

Now, no matter where the sprite is, when this code runs, the sprite glides to that position.

When this code runs now, the sprite glides to the first position that you set, then the second one.

Adding a forever loop and a “green flag clicked” block to your code will ensure the sprite repeats this gliding movement for the entire game.

Remember, you can get this sprite to move using whichever blocks you like. If you want the sprite to do something other than a glide movement, like turn, then choose the correct blocks to solve that problem.

Choisir une extension
L'heure de faire la fête !
Crée une célébration de victoire de folie en utilisant certaines de ces idées.
Plates-formes en mouvement
Rends ton jeu plus difficile en créant des plates-formes qui bougent.
Plates-formes qui rétrécissent
Crée une plate-forme qui rétrécit pour augmenter la difficulté de ton jeu.
Plouf ! Tu as perdu
Crée une condition pour que le joueur perde à ton jeu.
Ajoute de la musique
Ajoute un fond sonore à ton jeu.
Résolution du bug : Atterris sur tes pieds... ou pas
Corrige le bug qui permet à d'autres choses que les pieds d'un lutin de rester sur une plate-forme.
arrow_backward Retour
Suivant arrow_forward
Instructions
  1. Choisis une extension, et clique sur "Regarder" pour découvrir comment personnaliser ton projet.
  2. Quand tu as fini, reviens à la page des extensions et essaies-en une autre !