From c624775bf5f5c57757fdc5b24891dca83d7f81fd Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Fri, 14 Oct 2011 18:03:07 -0500 Subject: anmChr working --- src/bossMegaGoomba.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/bossMegaGoomba.cpp b/src/bossMegaGoomba.cpp index da66d16..032cfa8 100644 --- a/src/bossMegaGoomba.cpp +++ b/src/bossMegaGoomba.cpp @@ -178,8 +178,8 @@ void daMegaGoomba_c::bindAnimChr_and_setUpdateRate(const char* name, int unk, fl } void daMegaGoomba_c::dieFall_Begin() { - this->bindAnimChr_and_setUpdateRate("split", 0, 0.0); - dSprite_c::dieFall_Begin(); + //this->bindAnimChr_and_setUpdateRate("split", 0, 0.0); + //dSprite_c::dieFall_Begin(); } //TODO make this real perty like void daMegaGoomba_c::dieFall_Execute() { @@ -322,7 +322,8 @@ int daMegaGoomba_c::onExecute() { int daMegaGoomba_c::onDraw() { bodyModel.scheduleForDrawing(); - animationChr.process(); + bodyModel._vf1C(); + //animationChr.process(); animationPat.process(); return true; } @@ -542,9 +543,8 @@ void daMegaGoomba_c::executeState_Walk() { Vec vctr; ConvertMatrixToTranslationVector(&mtx, &vctr); */ - this->animationChr.setCurrentFrame( this->animationChr.getCurrentFrame() + 1.0 ); - if(this->animationChr.getCurrentFrame() > 400.0) - this->animationChr.setCurrentFrame(1.0); + if(this->animationChr.isAnimationDone()) + this->animationChr.setCurrentFrame(0.0); //HandleAcceleration(this); //HandleXSpeed(this); -- cgit v1.2.3