Hallo, ich muss für die Schule auf Twinery .org ein Spiel erstellen und habe ein Problem
{
(set: $code1 to 0)
(set: $code2 to 0)
(set: $code3 to 0)
(set: $code4 to 0)
(text-size: 1.5)[|Slot1>[$code1]]
(text-size: 1.5)[|Slot2>[$code2]]
(text-size: 1.5)[|Slot3>[$code3]]
(text-size: 1.5)[|Slot4>[$code4]]
}
{
(set: $styles to (css:
"position: fixed;
top: 10px;
left: 10px;"
))
}
(link-repeat: "Drehe Slot 1 hoch")[
(set: $code1 to $code1 + 1)(replace: ?Slot1)[$code1]
]
(link-repeat: "Drehe Slot 1 runter")[
(set: $code1 to $code1 - 1)(replace: ?Slot1)[$code1]
]
(link-repeat: "Drehe Slot 2 hoch")[
(set: $code2 to $code2 + 1)(replace: ?Slot2)[$code2]
]
(link-repeat: "Drehe Slot 2 runter")[
(set: $code2 to $code2 - 1)(replace: ?Slot2)[$code2]
]
(link-repeat: "Drehe Slot 3 hoch")[
(set: $code3 to $code3 + 1)(replace: ?Slot3)[$code3]
]
(link-repeat: "Drehe Slot 3 runter")[
(set: $code3 to $code3 - 1)(replace: ?Slot3)[$code3]
]
(link-repeat: "Drehe Slot 4 hoch")[
(set: $code4 to $code4 + 1)(replace: ?Slot4)[$code4]
]
(link-repeat: "Drehe Slot 4 runter")[
(set: $code4 to $code4 - 1)(replace: ?Slot4)[$code4]
]
(link: "Code überprüfen")[
(if: $code1 is 4 and $code2 is 8 and $code3 is 2 and $code4 is 9)[
(text-colour:#6e6e6e)[Der Tresor öffnet sich und du findest einen] (text-colour:#fd0)[Schatz!] (text-colour:#7a6262)[]
[[Das Ende]]
](else:)[
Der Code ist falsch. Es öffnen sich die Fallen und töten dich.
[[Neu starten]]
]
]
wenn ich auf die Schaltflächen wie zb. "Drehe Slot 1 hoch" klicke, verschieben die sich. Kennt sich jemand aus damit die Slots sich nicht bewegen?