I'm currently trying to create the following function:
Something happens (collision, specific time, etc.)
-> Text window appears and game pauses
-> Pressing a button displays the next page of text
-> Text window closes and game resumes.
Since i need to use function parameters i wanted to have something like that:
"Call function 'dialogue' (avatar id, the text)"
"Call function 'dialogue' (other avatar id, more text)"
"Call function 'dialogue' (avatar id, even more text)"
Which i got to work, but because of the "Wait for signal"-action i use in the function i currently have to add "Wait dt seconds" between each function call, which results in a very small "jerk" with each button press. But unfortunately i wasn't able to find a method without it.
I hope, i could explain the problem in a comprehensible way. And thanks in advance!