meow56 / Kixley

Kixley
1 stars 2 forks source link

Plz help #7

Closed cbp2170 closed 6 years ago

cbp2170 commented 6 years ago

How does one make the buttons on the screen work? It seems that writeText() is the new alert(), but what is the new prompt()? How do I buttons?

meow56 commented 6 years ago

use requestInput(["answer1", "answer2"], whenDone);

whenDone is the function that should be run after the player selects an option. (to pass functions as an argument, just write the function name without parentheses)