Antwort auf: Einsteigerfrage

Startseite Foren Deutsches LiveCode-Forum Einsteigerfrage Antwort auf: Einsteigerfrage

#2248
Klaus Major
Administrator

    Hallo duijM,

    willkommen im Forum! 🙂

    Hinweis: Wnn du LC Objekte ansprichst, bitte nicht THE benutzen -> the left of THE image xyz.
    Also OHNE THE -> the left of img xyz…

    THE wird verwendet, wenn Du Custom Properties ansprichst.

    OK, zu Deinem Problem, ich denke es fehlt die Kodition =, die lässt du in Deinem Skript aus.
    Du fragst nur ab, ob the left of img „rot“ GROESSER oder KLEINER als the left of img „gruen“ ist.
    Deshalb bleibt ROT stehen, es gibt keine Anweisung, was passieren soll, wenn die beiden Bilder die SELBE Position haben!

    Mach es so:

    if the left of image „grun.png“ >= the left of the image „rot.png“ then

    Selbiges für TOP.

    Gruß

    Klaus