Forum: Ruby Can't get "animate" to work on green shoes

64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-06-05 17:00
(Received via mailing list)
Hi there,

I am trying to do a simple animation. Basically I have a small png image
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 `<main>': undefined method `animate' for main:Object

So, I copied the following code from the web to see if the problem was
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

Any words on how to move my car left to right on the bottom on the

Thank you in advanced!
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-06-05 17:14
(Received via mailing list)
Sorry team, I found the failure for the "animate." I forgot to add **. Rookie stuff !

I still would like to know how to move the car bottom left to bottom

Thank you
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.