make LengthSeconds more predictable: sets the minimum length of the
tween after "On"
This commit is contained in:
@@ -189,7 +189,8 @@ void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
{
|
{
|
||||||
Actor *pActor = new Actor;
|
Actor *pActor = new Actor;
|
||||||
pActor->SetHidden( true );
|
pActor->SetHidden( true );
|
||||||
pActor->BeginTweening( fLengthSeconds );
|
apActorCommands ap( new ActorCommands(ssprintf("sleep,%f",fLengthSeconds)) );
|
||||||
|
pActor->AddCommand( "On", ap );
|
||||||
AddChild( pActor );
|
AddChild( pActor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user