From: ashbb Date: 2011-12-12T21:08:20+09:00 Subject: Re: How can i make this procedure into a function? --f46d040fa2747915ce04b3e3fdbb Content-Type: text/plain; charset=ISO-8859-1 Hi Akvile, > i am using timer now but... I think it's better to use timer() method in this case. But if you have to write your own method, use Thread.new(). A sample snippet is this: Shoes.app do def pause t Thread.new do sleep t yield end end light = oval 100, 100, 100 pause(3){light.fill = red} pause(5){light.fill = blue} end ashbb --f46d040fa2747915ce04b3e3fdbb--