x -> unexpected symbol in expression

  • GM 8

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • x -> unexpected symbol in expression

    Ich mache einen Snake-Ableger und bekomme eine Fehlermeldung, die ich nicht verstehe...

    Der Kopf der Schlangehat den Code:

    GML-Quellcode

    1. //Create
    2. global.anzahl-=1;
    3. direction = 0;
    4. inst = instance_create(x-32,y,obj_rumpf)
    5. inst.direction = direction;
    6. inst.ok = true;
    7. alarm[0] = 10;
    8. //Alarm0
    9. inst.xx = x:
    10. inst.yy = y;
    11. if direction = 0 x+=32;
    12. if direction = 180 x-=32;
    13. if direction = 90 y-=32;
    14. if direction = 270 y+=32;
    15. with inst event_perform(ev_other,ev_user0);
    16. alarm[0] = 10;
    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?