I would like play a flipbook for a set number of loops and then switch to another flipbook. I’ve tried to set this up a few different ways with blueprints but none of them have worked. I’d also like to trigger flipbooks from a level sequence but have been unsuccessful at that as well. Any thoughts would be appreciated.
Hi !
Its not clear what s your problem.
You have a texture setup correctly in a material to use the flipbook node?
Didd you plug some parameters to control the flipbook ?
If you make a material instance can you animate it correctly?
If you have the material, you just need some blueprint.
From blueprint create a dinamic material instance and apply this newly created to your mesh.
Save the reference in a variable so you can easily access it
Now use the Set Material Scalar parameter to control the Flipbook pages.
You can use a timeline to go from 0 to whatever in seconds
Ah sorry for not being clear. The flipbook is for a paper2D sprite, not a material. I add a flipbook using the flipbook component on my player blueprint, and then I can add a delay and switch to another flipbook, but what I really want to do is switch between a few different flipbooks over a period of time. I have a level sequence that I tried to trigger the flipbook change from, but nothing I attempted worked. Hope that’s clearer!
Those Flipbooks come with a special Event, that fires, if the Flipbook reached its end (however, works for Non-Looping Flipbooks only). You can use that to build a counter and compare a value with your desired number of loops, and once the number is reached, you can change out the Flipbook with a new one.
Since it will only work for Non-Looping Flipbooks, you can temporarily turn off the Looping ability in your blueprint so that you don´t have to mess with all your flipbooks just for this.
A quick and dirty, and not very elegant, but working example.
Sorry really basic question I am still learning. What is the node with the 2 plus symbols in it?
That is an “Increment Int” node, it always automatically adds +1 to the connected Integer every time, it gets called. you can get it by typing “+” into the search field.
Its the same as using the regular “Add” node with +1 in it.
Awesome thank you! That worked. Really appreciate you help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.