I think that this is my first message in the forum asking for help, and I don’t know if this issue is more related with the rendering part or it has something to do with the coding section, so I apologize if this is not the right place to ask…
I’m trying to recreate the classic pacman and after tweak arround with skeletal meshes and animations and several failed attempts, i’ve decided to use two independent static meshes for my character: one with the mouth open and one with the mouth closed, and then each 50ms swap the visibility of both meshes, and without movement it looks pretty good, but when I’ve started moving arround a blink effect appear to my player.
I’ve tryed with timers, with tick updates, with different methods ToggleVisibility, SetVisibility, SetActorHiddenInGame, … and all produces the same blinking effect. Maybe it has something to do with the rendering part or is the method I’m using to update the player position. I really don’t know where to start touching to achive the effect that I’ve wanted swapping the mesh smoothly without any frame without seeing the player mesh
If it’s needed I’ve leave the code for the tick method:
if you just want to swap the meshes for the chomping effect just by hidding/unhidding the other
then I think is better to use UStaticmescomponent instead skeletal meshes and just swap the mesh in the same component with setMesh()
This is the first thing I’ve tried. I’ve thought that the tick function could execute independently of the rendering methods and I’ve shown the hidden mesh first and then hide the shown mesh but the result is the same… Another point for the rendering section.
I’ve already have a skeletal mesh with blend shapes in case that i desist of trying the two static mesh method… but I want to achieve it using the first method. This project is just for testing and playing with the engine so avoid the method should be last option