Here's something I am going to use in my next game.
A function for text!
So there is two functions to use for making dialogues easier.
First one is called message, it works like normal sprintf,
but you don't have to put any other thing in it, but the message, like this:
message("Hello world!");
And second one defines the actor who prints the text.
Just go to some text actor that you want to print all messages and then
place this to it's draw actor code:
use();
Place this to global code:
- Code: Select all
char line[200];
void message(char * write)
{
strcpy(line, write);
}
void use()
{
sprintf(text, "%s", line);
}