Side scrolling text function

You must understand the Game Editor concepts, before post here.

Postby Troodon » Sun Feb 25, 2007 3:59 pm

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".
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Mon Feb 26, 2007 12:11 am

There is an error if the text actor has allready typed somthing. :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Troodon » Mon Feb 26, 2007 1:50 pm

So can I with a way clear it and then type?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby DilloDude » Mon Feb 26, 2007 9:39 pm

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)
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Sgt. Sparky » Thu Mar 01, 2007 1:22 am

it is odd how on one of my game funtions I made it randomly generated the i var. :? :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Fri Apr 20, 2007 6:17 am

http://game-editor.com/forum/viewtopic. ... 8696#18696
I modified it Novice! :D
Made it from scratch! :)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Re: Side scrolling text function

Postby Hblade » Mon May 18, 2009 8:16 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Previous

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest