ich habe mit dem speet horizontal speed actions die variable -4 aber wie kann ich aus so einem Befehl eine check befehl machen also wenn der speed horizontal -4 ist etwas dann passiert (ich habe keine pro edition)
set the horizontal speed to -4
-
-
-
-
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2:
at position 1: Unexpected end of code reached.
und wie muss ich die action schreiben wenn mein sprite gehen heist -
Ähm ja, aber daraus kann man nichts rauslesen. Einmal die Object Information bitte (auf den entsprechenden Knopf drücken).
-
Information about object: object0
Sprite: sprite1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Step Event:
execute code:
if (hspeed == -4) {
(...)
set the sprite to sprite2 with subimage 0 and speed 1
Key Press Event for <Left> Key:
start moving in directions 000100000 with speed set to 4
Key Press Event for <Right> Key:
start moving in directions 000001000 with speed set to 4
-
Da wo eine Klammer aufgeht, muss auch eine zugehen...
Muzilla91 schrieb:
if (hspeed == -4) {
(...)
set the sprite to sprite2 with subimage 0 and speed 1
Die (...) waren nur um dir zu sagen, dass dort dein Code hinkommt.
-
-
-
es kalpt
-
Benutzer online 1
1 Besucher