Aus Das deutschsprachige Scratch-Wiki
ändere x um ()
ändere x um ()
Kategorie: | Bewegung |
Typ: | Stapelblock |
Eingeführt in: | unbekannt |
Eingaben: | Zahl |
Plugin-Code (Wiki): | ändere x um ()
|
Der ändere x um ()-Block ist ein Bewegungsblock in Stapelblockform. Er verändert die X-Position einer Figur um eine bestimmte, eingegebene Menge.
Beispielnutzen
- Die Bewegung eines Charakteres in einem Spiel
- Animationen
- Malen mathematischer Funktionen (wie zum Beispiel der Sinuskurve)
Workaround
Alternativ zum "ändere x um ()"-Block kann auch eine Kombination mit dem "setze x auf ()"-Block oder mit dem "gehe zu X:() Y:()"-Block verwendet werden.
setze x auf ((X-Position) + (Zahl))
gehe zu x:((X-Position) + (Zahl)) y:(Y-Position)
Siehe auch
Code zum Einbinden ins Forum:
[wiki=de:Ändere x um () (Block)]Ändere x um () (Block)[/wiki]
[wiki=de:Ändere x um () (Block)]Ändere x um () (Block)[/wiki]