ich habe wieder mal ein kleines Problem.
Code: Alles auswählen
If SpritePixelCollision(#cursor, mx, my, #turm, 800, 70)
If MouseButton(#PB_MouseButton_Left)
payment()
EndIf
EndIf
Code: Alles auswählen
Procedure payment()
sprite = #turm
startres - 250
EndProcedure
Klicke ich aber auf das Symbol zieht es andauernd 250 ab. Ich hoffe mir kann jemand helfen, dass pro klick nur noch 250 und nicht mehr abgezogen wird.