Page 2 of 2

PostPosted: Sun Feb 25, 2007 3:59 pm
by Troodon
Well...it should first say "welcome aboard" and then when something happens it changes. For exampe, when there is a nuclear accident, the computerDATA goes to 1 and it says for example "Nuclear accident caused because too high reactor temperature".

PostPosted: Mon Feb 26, 2007 12:11 am
by Sgt. Sparky
There is an error if the text actor has allready typed somthing. :D

PostPosted: Mon Feb 26, 2007 1:50 pm
by Troodon
So can I with a way clear it and then type?

PostPosted: Mon Feb 26, 2007 9:39 pm
by DilloDude
The problem is that you need to set i to 0 before using it again.
Instead of using '|' for the text end you SHOULD be able to check for the null terminator, '\0'. I don;t know if that will work with strcmp or not, but you could check
Code: Select all
if (myText[i] == 0)

PostPosted: Thu Mar 01, 2007 1:22 am
by Sgt. Sparky
it is odd how on one of my game funtions I made it randomly generated the i var. :? :D

PostPosted: Fri Apr 20, 2007 6:17 am
by Sgt. Sparky
http://game-editor.com/forum/viewtopic. ... 8696#18696
I modified it Novice! :D
Made it from scratch! :)

Re: Side scrolling text function

PostPosted: Mon May 18, 2009 8:16 pm
by Hblade
I love this script, but every time I try to make a different message, it glitches out. If anyone can update it, that'd be awesome.