Flip Flop troubles in tile-town
I am trying to make a tile that toggles being blue and white when a third person character walks across it. My problem is that when I do walk across it, it flickers into the blue state, but then goes back to white, only sometimes sticking to blue. Through the troubleshooting process, I've narrowed it down to the flip flop node. I've tried doing the function manually too and all the other workarounds that I can think of, but none seem to fix the problem. What should I do? This is preventing my development from progressing, and I don't know what to do! Here is my code for the tile without optimizing or workarounds.
asked Jun 03 '17 at 04:48 AM in Blueprint Scripting
With current implementation you will get switching every time when tile overlapped.
But to get what you described, you should use
OnBeginOverlap -> cast to player character -> set blue. OnEndOverlap -> cast to player character -> set white.
And you shouldn't use "set material". It is better to create dynamic material instance in blueprint and set its color parameter.
answered Jun 03 '17 at 07:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here