Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles

Alex Duncan

1
Posts
1
Topics
7
Followers
46
Following
A member registered Feb 09, 2015 · View creator page →

Creator of

Recent community posts

Hi, I'm trying to call DoodleAnimator.ChangeAnimation() and have hit a very serious error that will crash Unity unless I restart the program. My code is pretty simple.

if(playerHits >= minPlayerHits){
    if(!activating){
        Debug.Log("Activating");
        activating = true;
        anim.ChangeAnimation(activatingAnim);
    }
    getPowerUpTimer += Time.deltaTime;
    if(getPowerUpTimer > getPowerUpTime){
         getPowerUpTimer = 0f;
         playerHits = 0;
         Debug.Log("HEYO WE GOT DAT POWERUP");
         PlayerGetsPowerUp();
    }
} else if(activating){
    activating = false;
    Debug.Log("Deactivating");
    anim.ChangeAnimation(baseAnim);
}

The error I get when I call ChangeAnimation is the following:

Assertion failed: TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations, size 12

The size of the unfreed allocation increments by 12 each frame after this, it seems. I have tried a few other ways to change the animation, but all of them give me the same results.

Hi lepelchannel, thanks for trying it out and I'm glad that, for the most part, you enjoyed it.

The frame-rate freeze you were experiencing is actually intentional, I wanted the "glitches" to feel quite jarring.