ユーザーがボタンをクリックすると、メッセージを何度も表示するグラフィックウィンドウが必要です。重複しないようにする方法については、インターネット全体を調べました。これはおそらく簡単な修正ですが、idk. Plz help here は私のコードです。クリッカー ゲームを作成しようとしていますが、この問題が発生したため停止しました。
GraphicsWindow.Height = 420
GraphicsWindow.Width = 720
GraphicsWindow.CanResize = "1"
button = Controls.AddButton("Click for eggs",200,200)
Controls.SetSize(button,100,100)
eggs = 0
Controls.ButtonClicked = buttonClicked
Sub buttonClicked
lastButtonClicked = Controls.LastClickedButton
If lastButtonClicked = button Then
eggs = eggs + 1
GraphicsWindow.DrawText(0,0,"You have " + eggs + " eggs")
ElseIf eggs >= 1 Then
GraphicsWindow.BackgroundColor = "White"
GraphicsWindow.DrawText(0,0,"You have " + eggs + " eggs")
EndIf
EndSub