strcpy (text string) tutorial

strcpy(text, "hello world");
strcpy sets the 1st value, which can either be a text actor (actor.text or event actor as just text), or a variable (string1) to the second value.
the second value can be another string variable, an actor.text OR specified text ("hello world").
examples....
strcpy(string1,"hello"); sets string1 to hello
strcpy(text, string1); sets the event actors text to string1... which if following the above line would make it hello.
strcat(text," world");
strcat sets a second string onto the previous one, for example if text is the actor in the previous examples, which read hello... then the final result from this
function would be 'hello world'.
you could also use this function to name levels, so if you had an actor with the text of 'this level is level ' then you could use...
strcat(text, levelno); to set it as this level is level 1... levelno being a variable.
hope this way faintly helpful....
my lineto tutorial is here http://game-editor.com/forum/viewtopic.php?f=5&t=10414 and is better than this one, mroe descriptive... that will be even more helpful than this....
savvy
(points if helpful please)
strcpy sets the 1st value, which can either be a text actor (actor.text or event actor as just text), or a variable (string1) to the second value.
the second value can be another string variable, an actor.text OR specified text ("hello world").
examples....
strcpy(string1,"hello"); sets string1 to hello
strcpy(text, string1); sets the event actors text to string1... which if following the above line would make it hello.
strcat(text," world");
strcat sets a second string onto the previous one, for example if text is the actor in the previous examples, which read hello... then the final result from this
function would be 'hello world'.
you could also use this function to name levels, so if you had an actor with the text of 'this level is level ' then you could use...
strcat(text, levelno); to set it as this level is level 1... levelno being a variable.
hope this way faintly helpful....
my lineto tutorial is here http://game-editor.com/forum/viewtopic.php?f=5&t=10414 and is better than this one, mroe descriptive... that will be even more helpful than this....
savvy
(points if helpful please)