PDA

View Full Version : Help with User Input controlling object


ScotchW
10-31-2009, 10:07 PM
I need some help - I created a variable that asks for a number and whatever is entered controls the object with the number of spins. I'm able to get the object to spin based on the number input, but Alice asks the question twice and moves the object twice. No where do I have it set to ask this twice. I have the variable set for for the question, then a loop with the jump up, spin based on input, and down. How can I get rid of the duplicate question and make it end correctly. Also, when I hit cancel, I get a programming error message.

xxledzeppelin2x3
10-31-2009, 10:16 PM
can you post your world so i can take a hands on approach to working on it?

ScotchW
10-31-2009, 10:42 PM
I posted my world to my original post. Thank you!

x2495iiii
10-31-2009, 10:54 PM
Actually, you DID ask twice, once for the variable "userinput" and once for the number of times the loop should occur. Set that value to userinput and that'll stop.

As far as the error goes, that will happen if you don't use the updated version of Alice 2.2. Download the latest version, or insert a warning in the prompt which tells the user NOT to click cancel.

xxledzeppelin2x3
11-01-2009, 11:10 AM
hmm that's odd, but i guess i would uninstall and reinstall it to get rid of the error when cancel is pressed?

Catalyst
11-01-2009, 12:27 PM
I need help as well, I have the same project but have no clue where to begin on how to do it.

ScotchW, what page numbers in our text book covered this? If you could let me know that would be a great help.

xxledzeppelin2x3
11-01-2009, 12:55 PM
make your own post and attach your world to it, so we can take a look at it...