This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Deutsch
  •  » Aktion bei Auto wenn Farbe berührt..

#1 2013-02-04 13:57:05

StarCaseNV
New Scratcher
Registered: 2013-02-04
Posts: 1

Aktion bei Auto wenn Farbe berührt..

Hallo...
Ich hab mal ne Frage zu meinem Projekt für Informatik: http://scratch.mit.edu/projects/StarCaseNV/3081691
Wie schaff ich es, dass das Auto zum Start zurück gesetzt wird, wenn es den Rand berührt, gleichzeitig sollte die Stoppuhr neu gestartet.

Danke;)

Offline

 

#2 2013-02-04 15:40:14

goch
Scratcher
Registered: 2007-06-06
Posts: 21

Re: Aktion bei Auto wenn Farbe berührt..

Ich würde es so machen:

Wenn grüne Flagge angeklickt
        zeige Richtung 0
        gehe zu x: 153 y: 31
        starte Stoppuhr neu
 
Wenn grüne Flagge angeklickt
        wiederhole fortlaufend 
            falls (Taste "Pfeil nach oben" gedrückt?)
                gehe 5 -er Schritt
            falls (Taste "Pfeil nach unten" gedrückt?)
                gehe -3 -er Schritt
            falls (Taste "Pfeil nach rechts" gedrückt?)
                drehe  10 Grad nach rechts
            falls (Taste "Pfeil nach links" gedrückt?)
                drehe  10 Grad nach links
            falls (wird Farbe ROT berührt?)
                zeige Richtung 0
                gehe zu x: 153 y: 31
                starte Stoppuhr neu

Der hellblaue Block "falls (Taste "Pfeil nach oben" gedrückt?) funktioniert hier besser
als der gelbe Block "Wenn Taste Pfeil nach oben gedrückt".

Offline

 
  • Index
  •  » Deutsch
  •  » Aktion bei Auto wenn Farbe berührt..

Board footer