I’m trying to trigger a sequence when the player reaches a win condition: collecting three collectibles. However, no matter what I try, I can’t get it to play. I’ve tried making custom events in both the player and SequenceDirector blueprints, and I’ve tried reordering the sequence node (pictured). I could get the widget to appear before I added the sequence, but now neither will, and I’m running out of ideas.
All I can tell you, is this code works. So, I’m assuming that it’s not reaching this point.
Can you try putting a print here:
The string doesn’t play. Originally, I had it display the widget once you collected three and it worked just fine, but then I tried adding the sequence. Is that the problem?
If the print node isn’t firing, your code just isn’t reaching it. Nothing to do with what comes after that…
So what am I doing wrong? Do I need to put something in the “settings” pin?
No, this code isn’t working right
I’m not sure what you’re trying to point out.
If the print statement isn’t firing, it can only mean all of you code to the left of that isn’t working correctly.
That’s what I did, and it didn’t work.
Just to check, you know the print is only small and in blue, top left in the viewport? ( It can be hard to see ).
If it’s not printing, then your code is not getting to that point. Ergo, the logic is faulty, or you have not collected 3 ‘things’.
Ooooh… I created an object that automatically increased the counter to three for the purposes of playtesting, and the cutscene failed to appear each time I tried it. I got rid of it and collected the three things manually, and it worked!