Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Help with User Input controlling object
Old
ScotchW
Guest
 
Status:
Posts: n/a
Default Help with User Input controlling object - 10-31-2009, 11: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.
Attached Files
File Type: a2w u04a1 Weaver.a2w (560.0 KB, 75 views)

Last edited by ScotchW; 10-31-2009 at 11:41 PM.
   
Reply With Quote
Old
xxledzeppelin2x3
Guest
 
Status:
Posts: n/a
Default 10-31-2009, 11:16 PM

can you post your world so i can take a hands on approach to working on it?
   
Reply With Quote
Old
ScotchW
Guest
 
Status:
Posts: n/a
Default 10-31-2009, 11:42 PM

I posted my world to my original post. Thank you!
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 10-31-2009, 11: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.


(')>
   
Reply With Quote
Old
xxledzeppelin2x3
Guest
 
Status:
Posts: n/a
Default 11-01-2009, 12:10 PM

hmm that's odd, but i guess i would uninstall and reinstall it to get rid of the error when cancel is pressed?
   
Reply With Quote
Old
Catalyst
Guest
 
Status:
Posts: n/a
Default 11-01-2009, 01: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.
   
Reply With Quote
Old
xxledzeppelin2x3
Guest
 
Status:
Posts: n/a
Default 11-01-2009, 01:55 PM

make your own post and attach your world to it, so we can take a look at it...
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.