Quick Links: Gideros Home | Download Gideros | Developer Guide
Rotation - Gideros Forums
Rotation
  • How can i do this ( http://morristsai.com/blogpics/TurningDancer-thumb-300x400.gif ) in Gideros?
    TurningDancer-thumb-300x400.gif
    300 x 400 - 204K
  • I'd use MovieClip.
    First you need to export all images as separate files, then if you want you can use texture packer to pack them, or define animation manually from multiple files. and you can do animation by yourself as in Gideros TexturePack example or use MovieClip.

  • I dont know how to use MovieClip in Gideros :)
  • mert - did you search on the forum? Searching first and reading a lot will help you to the limits :)
    Before starting with Gideros Studio, read our extensive Developer FAQ here
  • I thought noone can ask this easy questions like me :)
  • @mertocan

    Here's an example using the same animation (project with images attached)
     
    -- MovieClip animation - evs
     
    local imageWidth, imageHeight = 300, 400
    local frames = {} -- table for the frames
     
    -- set up MovieClip table from pngs 01 to 34
    for i = 1, 34 do
     
    frames[i] = {i, i, Bitmap.new(Texture.new(string.format("%02d.png", i)))}
     
    end
     
    local clip = MovieClip.new(frames) -- create clip and start
    clip:setGotoAction(34, 1) -- set clip to loop back to start (1) at end (34)
     
    clip:setPosition(application:getDeviceWidth() / 2 - imageWidth / 2 ,
    application:getDeviceHeight() / 2 - imageHeight / 2) -- center
     
    stage:addChild(clip) -- show it
    Rotate.zip
    1000K
  • Alternatively wait until the render to texture feature is completed (thanks again @Atilim your a star! :) ) and you have a movie playback function that actually decrypted an animated gif on the fly.

    Alternatively you could implement your own movie player as a native plugin.
    WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
    #MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

In this Discussion

Top Posters