From: Ruby Student Date: 2013-06-06T00:13:40+09:00 Subject: Re: Can't get "animate" to work on green shoes --001a11c1efc271793d04de69a4a6 Content-Type: text/plain; charset=ISO-8859-1 Sorry team, I found the failure for the "animate." I forgot to add * Shoes.app*. Rookie stuff ! I still would like to know how to move the car bottom left to bottom right though! Thank you On Wed, Jun 5, 2013 at 10:58 AM, Ruby Student wrote: > Hi there, > > I am trying to do a simple animation. Basically I have a small png image > of a car on the bottom, left corner of my screen. I tried the *"animate"*method but I get the following error" > > *animate001.rb:2:in `
': undefined method `animate' for main:Object > (NoMethodError)* > > So, I copied the following code from the web to see if the problem was > with my code and it also failed with the same message. > > require "green_shoes" > animate do |frames| > unless frames > 100 > @p.fraction = (frames % 100) / 100.0 > else > break > end > end > > Any words on how to move my car left to right on the bottom on the screen? > > Thank you in advanced! > -- > Ruby Student > -- Ruby Student --001a11c1efc271793d04de69a4a6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry team, I found the failure for the "an= imate." I forgot to add Shoes.app. Rookie stuff !

= I still would like to know how to move the car bottom left to bottom right = though!

Thank you


On Wed, Jun 5, 2013 at 10:58 AM, Ruby Student <ruby.= student@gmail.com> wrote:
Hi there,

I am trying to do a simple animation. Ba= sically I have a small png image of a car on the bottom, left corner of my = screen. I tried the "animate" method but I get the followi= ng error"

animate001.rb:2:in `<main>': undefined method `animate'= ; for main:Object (NoMethodError)

So, I copied the fo= llowing code from the web to see if the problem was with my code and it als= o failed with the same message.

require "green_shoes"
animate do |frames|
= =A0 unless frames > 100
=A0=A0=A0 @p.fraction =3D (frames % 100) / 10= 0.0
=A0 else
=A0=A0=A0 break
=A0 end
end
=
Any words on how to move my car left to right on the bottom = on the screen?

Thank you in advanced!
--
Ruby Student



--
Ruby Studen= t --001a11c1efc271793d04de69a4a6--