Hallo !
Also ich möchte folgendes machen: Ich bewege ein Bild unter einem transparenten Ausschnitt eines anderen Bildes. Wenn das Bildende am Ende des transparenten Ausschnitts angekommen ist soll es aufhören sich zu bewegen.
Das Bild bewegt sich einwandfrei mit diesem Script (außerdem kann ich rein und rauszoomen):
on exitFrame me
go to the frame
if keypressed ("k") then
set the locH of sprite 1 to the locH of sprite 1 +15
end if
if keypressed ("s") then
set the locH of sprite 1 to the locH of sprite 1 -15
end if
if keypressed ("w") then
set the locV of sprite 1 to the locV of sprite 1 +15
end if
if keypressed ("x") then
set the locV of sprite 1 to the locV of sprite 1 -15
end if
if keypressed ("u") then
set the width of sprite 1 to the width of sprite 1 *1.03
set the height of sprite 1 to the height of sprite 1 *1.03
end if
if keypressed ("i") then
set the width of sprite 1 to the width of sprite 1 *0.97
set the height of sprite 1 to the height of sprite 1 *0.97
end if
end if
end
Aber wie kann ich einen Stop realisieren ?!
silence
Also ich möchte folgendes machen: Ich bewege ein Bild unter einem transparenten Ausschnitt eines anderen Bildes. Wenn das Bildende am Ende des transparenten Ausschnitts angekommen ist soll es aufhören sich zu bewegen.
Das Bild bewegt sich einwandfrei mit diesem Script (außerdem kann ich rein und rauszoomen):
on exitFrame me
go to the frame
if keypressed ("k") then
set the locH of sprite 1 to the locH of sprite 1 +15
end if
if keypressed ("s") then
set the locH of sprite 1 to the locH of sprite 1 -15
end if
if keypressed ("w") then
set the locV of sprite 1 to the locV of sprite 1 +15
end if
if keypressed ("x") then
set the locV of sprite 1 to the locV of sprite 1 -15
end if
if keypressed ("u") then
set the width of sprite 1 to the width of sprite 1 *1.03
set the height of sprite 1 to the height of sprite 1 *1.03
end if
if keypressed ("i") then
set the width of sprite 1 to the width of sprite 1 *0.97
set the height of sprite 1 to the height of sprite 1 *0.97
end if
end if
end
Aber wie kann ich einen Stop realisieren ?!
silence