Contenu du cours
Jeu Bat city
À propos de la leçon

Ajoute la chauve-souris et l’arrière-plan

L’arrière-plan

Le sprite Bat

Code le sprite Bat

quand le drapeau vert pressé
aller à x: (-190) y: (-140)
glisser en (0.5) secondes à x: (-190) y: (-140)
répéter indéfiniment
si  <touche le (Buildings v) ?> alors
stop [tout v]
end
end
when green flag clicked
go to x: (-190) y: (-140)
glide (0.2) secs to x: (-190) y: (-140)
forever
if  <touching (Buildings v) ?> then
stop [all v]
end
quand la touche [espace v] est pressée
basculer sur le costume (bat-b v)
glide (0.5) secs to x: (-190) y: (140)
basculer sur le costume (bat-a v)
glide (0.5) secs to x: (-190) y: (-140)
when [space v] key pressed
switch costume to (bat-b v)
glide (0.5) secs to x: (-190) y: (140)
switch costume to (bat-a v)
glide (0.5) secs to x: (-190) y: (-140)