View Single Post
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 06-28-2018, 06:15 PM

Quote:
Originally Posted by jkidd View Post
Hi chickentree -

I'm sorry for the multiple posts. :/ I'm not trying to get the answers from folks. Merely, I'm only trying to understand what I'm missing or doing wrong.

I'm more of a visual learner, so examples or screen shots help.

I've attached the file in this reply.

- jkidd
First understand what is going on now:
  1. You are asking how many times to spin in sheriff.spin. So each time it is called the question is asked again
  2. after the first time, the repeat question is asked and either sheriff.spin is called forever or the sheriff says "it was fun" over and over forever

Pick "no" to see that the sheriff says "it was fun" repeatedly (the movie is running the whole time)

Then think about what you want the movie to do:
In My First Method:
ask the user how many times to spin and save this value as times
spin the sheriff times
ask the user if they want to do it again and save this value as continue
while continue value is true

Spin the sheriff times times
ask the user if they want to do it again and save this value as continue
sheriff says bye
In sheriff.spin

Add a parameter for how many times to spin
Just spin the sheriff ( take out question about how many times.)

These changes should get you what you want. Again the main thing is to work your way through how the movie works in your head.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote