Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
Spinning Character?
Old
jkidd
Member
 
Status: Offline
Posts: 21
Join Date: Jun 2018
Default Spinning Character? - 06-27-2018, 07:49 PM

ey guys,

I have been working on having a character that asks the user for a number, which then causes the character to jump up, while using a loop to spin around the number of times specified, and then comes back down.

Once the Alice program has executed, the user is asked if they want it to run again. If they input "yes", it runs again. I am to use a loop to do this, so that it will run continually as long as the user keeps entering "yes" at the end.

Here is a screen shot of my method in Alice: https://image.ibb.co/eHYrvT/Cowboy.jpg

This is my dilemma... Once I click "yes", it goes back to the character originally asking the user as to how many times that he should spin. Instead of repeating how ever many spins that I told the character to do.

What am I missing? Any advice would be great.

Thanks.

- jkidd
   
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 ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.