News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
animations in murgalua
Author Message
widged
Junior Member
**


Posts: 35
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: animations in murgalua

Okay, I don't need the coroutine business anymore. I only need a call

Code:
    run_anim(sprite,points)


and a function

Code:
function run_animate(sprite,points)
    local pos = {}
    for p = 1,100 do
      pos = points[p]
      Fl:wait(.05);
      sprite:position(pos.x,pos.y)
      window:redraw();
    end
end


New version of the script:
animation script
(run anim.lua from within the folder that contains that file)

And for the fun of it, the script in action, captured in a screencast
(quicktime movie recorded on a mac, may not show properly on a pc or linux machine -- the animation is a *lot* smoother than on this movie)

This post was last modified: 05-28-2007 07:35 PM by widged.

05-28-2007 10:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
animations in murgalua - widged - 05-28-2007, 09:16 AM
RE: animations in murgalua - widged - 05-28-2007, 10:28 AM
RE: animations in murgalua - widged - 05-28-2007 10:36 AM
RE: animations in murgalua - iGame3D - 05-28-2007, 12:31 PM
RE: animations in murgalua - chrimo - 05-29-2007, 08:10 AM
RE: animations in murgalua - mikshaw - 05-29-2007, 09:52 PM
RE: animations in murgalua - iGame3D - 05-30-2007, 12:08 AM
RE: animations in murgalua - mikshaw - 06-23-2007, 05:57 PM
RE: animations in murgalua - iGame3D - 06-25-2007, 10:36 AM
RE: animations in murgalua - mikshaw - 06-25-2007, 11:31 AM
RE: animations in murgalua - JohnMurga - 06-27-2007, 10:01 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: