Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
TNT Animator Studio 1.04 Released! 22/08/2012 - Page 3 — Gideros Forum

TNT Animator Studio 1.04 Released! 22/08/2012

13»

Comments

  • if i use remove alpha border on gideros texture packer, the animation becomes weird. iis it only me?
  • i'll look at.

    thanks for report.!
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • @GregBUG
    thanks to you too.

    and it also seems the example 2 is not giving event to onStartAnimation
    is this also a bug?
  • GregBUGGregBUG Guru
    edited October 2012
    @GregBUG
    thanks to you too.

    and it also seems the example 2 is not giving event to onStartAnimation
    is this also a bug?
    ok. checked.

    events work fine.
    it's how example 2 is written.

    try to change example2:
    function CPlayer:init(playerType)
    	self.lastDirection = 1
    	self.anim = CTNTAnimator.new(crockLoader)
    	self.anim:setAnimation("CROCK_IDLE_DOWN")
    	self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self)
     
    	self.anim:addToParent(self)
    	self.w = application:getLogicalWidth() + 32
            self.h = application:getLogicalHeight() + 32
     
            self.xPos = application:getLogicalWidth() /2
            self.yPos = application:getLogicalHeight() /2
            self.speed = self.anim:getSpeed()
            self:setPosition(self.xPos, self.yPos)
    end
     
    function CPlayer:start()
    	self.anim:playAnimation()
    end
    -- create crock object...
    local crock = CPlayer.new()
    -- assign events...
    crock.anim:addEventListener("ANIM_START", onStartAnimation, event)  
    crock.anim:addEventListener("ANIM_STOP", onStopAnimation, event)  
    crock.anim:addEventListener("ANIM_CHANGE", onChangeAnimation, event)  
    -- start animation...
    crock:start()
    in example 2 start event is not fired because when event are assigned animation is already started...

    example2 modified in next version...

    thanks for report...

    now check "alpha border" bug... in editor..


    stay tuned.
    :)
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • @GregBUG

    all right thanks. i would like to add suggetions. when i use addEventListener, the event object should contain the object which send the event.

    and is this the expected behavior? when i add eventlistener like this in class Foo :

    self._explodeAnim:addEventListener("ANIM_STOP", self._onExplodeStopAnimation, event)

    and i have object of class SubFoo which inherits Foo and override self._onExplodeStopAnimation

    but the function that is called is the one in Foo. it should be the one in SubFoo right?
  • @bysreg
    Do you also add event listeners in SubFoo class? Because event listeners are added to specified instance, not all class instances.
  • @ar2rsawseen

    no, i didnt. i add it in the init function in foo class. well, adding add event listener in init function in SubFoo did the trick, but is this the expected behavior? afaik normally, the override function is called
  • how's the alpha border bug?
  • @bysreg
    sorry for the BUG delay on Bug FIX animator but i'm working on TNT Collision (hope to release tomorrow!)

    after that i'll update Animator to support collision and hopefully also your bug report!.
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
Sign In or Register to comment.