Paper2D how to load sprites properly into the level?

Im pretty new in Unreal, im trying to make a 2D platformer, and i have this issue:

When i load a level, i have several sprites and some of them change the flipbook for another one.

The first time that this happens on screen it pixelates, or flashes. (as if it was trying to load the sprite its changing into)

And then after that it keeps swapping between both flipbooks just fine, no flashing or heavy pixelation.

So mi thought was, “im doing something wrong and these things arent loading until they get used, then they work fine, how do i load all this as i start the level?”

Not sure if that is whats happening, but hey.

Anyone got any idea how to solve this?

The way it swaps the flipbooks:

I have 2 variables (flipbooks) already set with the correspondent flipbooks sources i wanna change into, then i use a “set flipbook” and the linked variable.

Any help is appreciated, thanks!

Hey EionDark!

Are you making sure you have the flipbook asset set to something like an idle on BeginPlay?

Would you mind getting us some screenshots of your code and anything you think is pertinent to the issue? The more the better! :slight_smile:

1 Like

Sorry for the delay replying.

i

This is how i set it up so i can call a custom event to change the paperflipboog animation.

but when i do it flashes white, it looks weird for a second then looks fine.
It only happens the first time i change into a “new” paperflipbook, the second time it changes it looks fine from the start.

For extra explanation ill explain an example:

Character A , is in the map, with an idle animation, when you get talk to it, it should change to a angry animation,

So when u interact, and changes paperflipbook (through a custom event call) that happens.

Thanks for the reply!

I even tried to set like a begin play function that goes throughout all the animations before it appears on screen thinking it might load the sprites and it wont flash later but no dice.

It looks bad but it was to test if that would fix the issue lol, it didnt

Hey again EionDark! No worries on the time, if you need the time you take it :slight_smile:

Can I see a screenshot of your BeginPlay from this Blueprint? Since that’s where the issue is happening (spawn of the BP) I’d like to dig into that.

1 Like

Hi there!

For the pixelation load try turning ‘Texture Streaming’ OFF in project settings

3 Likes

I dont have a Begin play active since im using this blueprint for a scene (as in a “movie” scene that plays out, i am playing the scene from the Level Blueprint, sending calls to custom events whenever i need to change the flipbooks etc)

(since im going to be using this character for a bunch of scenes i thought about making a bp just for all his actions, then use it only for scenes and not gameplay level stuff)

I will try this right away and let you know thanks!

Just tried this and worked like a charm,

No more flashing or pixelating.

Thanks a bunch!

1 Like

Just tried eldany.uy solution and it worked.

But thanks for your help as well!

1 Like

Glad to help! :hugs:

1 Like