Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Getting Loopy (http://www.alice.org/community/showthread.php?t=11850)

rkhorn 12-16-2017 11:16 PM

Getting Loopy
 
I worked with loop and while today to get a character to jump in the air and spin a user-specified number of times. As a bonus I also had to figure how to accept possible variations in a "yes" response.

Since I couldn't figure out a possible existing function or combination of functions in Alice that could accomplish changing the case of an string entry, I just used some boolean logic checks to get it done.

AguiJu 12-16-2017 11:56 PM

getting loopy
 
So what I did was create an if else statement inside my loop that said if true == answer "yes" OR == "Yes" OR == "YES"...That way it would except any of those values instead of changing the casing in the variable. Hope that helps


All times are GMT -5. The time now is 12:50 PM.

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