Kiwi
Member
I'm fairly new to GML, so this question may sound a little nooby. It's also my first post!
So I've made a typer object which types out a string, letter by letter, which works fine. I've also made it so that when it detects a certain character, it does some kind of action. Like pausing or changing colour or whatever.
While the above works, I thought it'd be better if I could do some kind of rich text thing, where it removes the special symbols from the actual text but still carries out the action.
where !3 indicates a delay for 3 seconds. !5 could be 5 seconds, !10 could be 10, etc.
How would I go about this? :/
So I've made a typer object which types out a string, letter by letter, which works fine. I've also made it so that when it detects a certain character, it does some kind of action. Like pausing or changing colour or whatever.
Code:
switch(string_char_at(msg[page], count)){
case ".":
stopped = true;
alarm[0] = 15;
break;
Code:
msg[0] = "Hello, !3 this is a test";
How would I go about this? :/