Ich mache einen Snake-Ableger und bekomme eine Fehlermeldung, die ich nicht verstehe...
Der Kopf der Schlangehat den Code:
Alles anzeigen
Ich bekomme seltsamerweise diesen Fehler:
"FATAL ERROR in
action number 1
of Alarm Event for alarm 0
for object obj_kopf:
COMPILATION ERROR in code action
Error in code at line 1:
inst.xx = x:
...........^
at position 12: Unexpected symbol in expression."
(Die Punkte vor dem Pfeil sind natürlich nicht da)
Was mache ich falsch?
Der Kopf der Schlangehat den Code:
GML-Quellcode
- //Create
- global.anzahl-=1;
- direction = 0;
- inst = instance_create(x-32,y,obj_rumpf)
- inst.direction = direction;
- inst.ok = true;
- alarm[0] = 10;
- //Alarm0
- inst.xx = x:
- inst.yy = y;
- if direction = 0 x+=32;
- if direction = 180 x-=32;
- if direction = 90 y-=32;
- if direction = 270 y+=32;
- with inst event_perform(ev_other,ev_user0);
- alarm[0] = 10;
Ich bekomme seltsamerweise diesen Fehler:
"FATAL ERROR in
action number 1
of Alarm Event for alarm 0
for object obj_kopf:
COMPILATION ERROR in code action
Error in code at line 1:
inst.xx = x:
...........^
at position 12: Unexpected symbol in expression."
(Die Punkte vor dem Pfeil sind natürlich nicht da)
Was mache ich falsch?