[Thread Prev] [Thread Next]
Hello Mike
Thanks, Thats what I need!
Zehava Wizman
Mike Sandy <mjsandy@xxxxxxxxxxxxxx> wrote:
Try:
to change_songs
make "song :song + 1
show :song
if :song = 1
[set "beach "on? "false
set "happy "on? "true ]
if :song = 2
[set "happy "on? "false
set "forest "on? "true]
if :song = 3
[set "forest "on? "false
set "beach "on? "true]
if :song > 3
[set "beach "on? "false
make "song 0]
end
Mike
----- Original Message -----
From: zehava wizman
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: Tuesday, November 14, 2006 4:50 AM
Subject: Re: [MWForum] changing music
Hi Daniel!
Thanks for your answer, Its belongs to the second part of my question-
"other clever solutions", but the solution is conncected with recursion, and I
want more simple solution, Is there a way to do it like I wrote (with
variables) and not to click twice on the turtle, because my suggestion is
working, but you have to click twice on the turtle.
Thanks, Zehava
Daniel Ajoy <da.ajoy@xxxxxxxxx> wrote:
On 12 Nov 2006 at 22:30, zehava wizman wrote:
> I would like to know some other ways to do it, maybe with list?
I had to separate the launching of the music from the action of
the turtle because when the turtle was cancelling the music it
was also cancelling it's own actions (weird behaviour).
So here is a work-around:
to startup
make "songs [happy forest beach]
make "current "xxxxxxx
when [not :current = first :songs] [
cancel :current
make "current first :songs
launch :current
]
end
to change_songs_1
make "songs lput first :songs butfirst :songs
show :songs
end
Daniel
OpenWorld Learning
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
Previous by thread:
Re: changing music
Next by thread:
Re: changing music
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|