Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
how to implement zoom in zoom out animation with fade effect? — Gideros Forum

how to implement zoom in zoom out animation with fade effect?

louislouis Member
edited November 2012 in User experience
hi everyone:
I want to implement this effect , zoom in, but I didn't found any demo or document, in fact ,I hasn't any game develop experience using box2d :<

http://www.entheosweb.com/flash/zoom_in.asp
Tagged:

Comments

  • OZAppsOZApps Guru
    Accepted Answer
    @louis, you can try GTWeen and then modify the
    scale
    ,
    alpha
    and
    y
    properties.
    twitter: @ozapps | http://www.oz-apps.com | http://howto.oz-apps.com | http://reviewme.oz-apps.com
    Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
    Cool Vizify Profile at https://www.vizify.com/oz-apps
  • MellsMells Guru
    edited November 2012 Accepted Answer
    You will achieve the same effect by using GTween :
    local texture = Texture.new("image.png")
    local myCar = Bitmap.new(texture)
    stage:addChild(myCar)
     
    local newScale = myCar:getScale()*.2
    myCar:setPosition(200, 500)
    GTween.new(myCar, 8, {x = 500, y = 50, alpha = .2, scaleX = newScale, scaleY = newScale})
    Edit : @OZApps you're fast!

    Note for starters : scale is accessible through GTween by using scaleX and scaleY
    twitter@TheWindApps Artful applications : The Wind Forest. #art #japan #apps
  • Cool, you are great!
  • bernardbernard Member
    edited November 2012
     
    local newScale = mySprite:getScale()*.2
    In the example codem you mean:
    local newScale = myCar:getScale()*.2
    don't you?

  • In the example codem you mean:
    local newScale = myCar:getScale()*.2
    don't you?
    Yes :) I wrote the code sample and after in a hurry tried to adapt to the example that @louis pointed to.
    twitter@TheWindApps Artful applications : The Wind Forest. #art #japan #apps
Sign In or Register to comment.