Variable name excected

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

  • Variable name excected

    Problem gelöst!

    Ich sitzt an einem Jump and run hab in der Hauptfigur so einiges an Variablen rum schwieren und jezt habe ich eine names Schild erschaffen aber wenn ich jezt das Game start dann sacht er das überall wo die varialbe steht ein Variablen Namen erwartet (Variable name excected). Ich poste hier alle Objekte die mit der Varialbe schild zu tuhen haben. Hab alles mal rot gefärbt.

    Information about object: master

    Sprite: master
    Solid: false
    Visible: true
    Depth: 0
    Persistent: false
    Parent: <no parent>
    Mask: <same as sprite>

    Create Event:
    set the number of lives to 3
    set variable schutz to 0

    Step Event:
    if relative position (0,1) is collision free for Only solid objects
    set the gravity to 0.7 in direction 270
    else
    set the gravity to 0 in direction 0
    if vspeed is larger than 14
    set the vertical speed to 14

    Collision Event with object blocker:
    move in direction direction at most 12 till a contact with solid objects
    set the vertical speed to 0

    Collision Event with object randblocker:
    move in direction direction at most 12 till a contact with solid objects
    set the vertical speed to 0

    Collision Event with object feind01:
    if expression vspeed > 0 && y < other.y+6 is true
    for other object: change the instance into object feind01_tot, yes performing events
    else
    if schutz is larger than 0
    execute code:

    {
    schutz -= 1
    }
    bounce precisely against all objects
    else
    set the number of lives to -1
    jump to the start position

    Collision Event with object himmelsblocker:
    move in direction direction at most 12 till a contact with solid objects
    set the vertical speed to 0

    Collision Event with object pfeil:
    if schutz is larger than 0
    bounce precisely against all objects
    execute code:

    {
    schutz -= 1
    }
    else
    set the number of lives relative to -1
    jump to the start position

    Collision Event with object schutz:
    if schutz is smaller than 3
    set variable schutz relative to 1
    for other object: destroy the instance
    else
    destroy the instance

    Keyboard Event for <Left> Key:
    if relative position (-5,0) is collision free for Only solid objects
    move relative to position (-5,0)

    Keyboard Event for <Up> Key:
    if relative position (0,1) gives a collision with Only solid objects
    set the vertical speed to -12

    Keyboard Event for <Right> Key:
    if relative position (5,0) is collision free for Only solid objects
    move relative to position (5,0)

    Other Event: Outside Room:
    jump to the start position
    set the number of lives relative to -1


    Information about object: Status

    Sprite: <no sprite>
    Solid: false
    Visible: true
    Depth: 0
    Persistent: false
    Parent: <no parent>
    Mask: <same as sprite>

    Create Event:
    set the information in the window caption:
    don't show score with caption score:
    don't show lives with caption lives:
    don't show health with caption health:

    Other Event: No More Lives:
    go to room <undefined> with transition effect Interlaced from right

    Draw Event:
    set a font for drawing text
    at position (view_left[0]+10,view_top[0]+30) draw the value of score with caption Münzen:
    at position (view_left[0]+10,view_top[0]+10) draw the number of lives with caption Leben:
    execute code:

    {
    var xx, temp;
    xx=schutz;
    temp=sprite_index
    sprite_index=schutz;
    repeat(lives) {draw_sprite(schutz,-1,view_left[0]+10+(xx-1)*sprite_width,view_top[0]+10); xx-=1}
    sprite_index=temp;
    }

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von lucky90 ()