I am programming a little game with Ruby/Shoes. I am trying to get this code into a loop. It should repeat after the last timer. I don't know how to start with this.
@timer2= timer(20)do
@pic.move(100,170)
end
@timer2= timer(40) do
@pic.move(350,120)
end
@timer2= timer(60) do
@pic.move(20,400)
end
@timer2= timer(80) do
@pic.move(420,60)
end