Teleprompter



Users browsing this forum: No registered users and 1 guest

Next topic
Previous topic
Post new topic Reply to topic  NeoAxis Forum Index » General » Community Projects, Add-ons & Code Samples
Search for:
Author Message
New Professional License
New Professional License
User avatar

Joined: Tue Sep 16, 2008
Posts: 1384
Location: Imatra
Country: Finland (fi)
PostPosted: Tue Oct 07, 2014 8:00 pm Post subject: Teleprompter
Bottom of Page Back to top
Punches messages into screen one letter at a time.
Has movement, color, position, align and many messages at once.
Save/Load while displaying messages untested.


Constructor:
Code: Select all   Expand view
public TeleprompterMessage(string text, float fadeOutTime)

Example use:
Code: Select all   Expand view
   Teleprompter.TeleprompterMessage m = new Teleprompter.TeleprompterMessage("$8Hello world#3, $7how are you?", 5);
   m.TextPosition = new Vec2(.5f, .5f);
   Teleprompter.Instance.Messages.Add(m);
More examples in example map logic system downloadable below.



Use in combination with CutSceneManager for extra epicness.



File comment: Punches messages into screen one letter at a time.
Teleprompter.zip [6.06 KiB]
Downloaded 36 times
 
 Profile  
Moderator
Moderator
User avatar

Joined: Wed Nov 28, 2007
Posts: 1516
Location: Vancouver, British Columbia
Country: Canada (ca)
PostPosted: Wed Jan 14, 2015 7:14 pm 
Bottom of Page Back to top
Very cool code there, typewriter effect is what I know this as.

 
 Profile  
User avatar

Joined: Sun Jan 11, 2015
Posts: 23
Location: London, United Kingdom
Country: United Kingdom (uk)
PostPosted: Wed Jan 14, 2015 7:44 pm 
Bottom of Page Back to top
Hmm, this is quite useful. Nice share :P

I could probably find a use for this although it would be nice to display icons in this way to the player.

 
 Profile  
New Professional License
New Professional License
User avatar

Joined: Tue Sep 16, 2008
Posts: 1384
Location: Imatra
Country: Finland (fi)
PostPosted: Thu Jan 15, 2015 2:33 pm 
Bottom of Page Back to top
Hah, nice idea to include pictures.
I will extend this code in the future, so that it will incorporate speech bubbles and messages being stacked properly (so they don't overlap).

Btw this will crash the game if tried to save/load while displaying messages.

 
 Profile  
Moderator
Moderator
User avatar

Joined: Wed Nov 28, 2007
Posts: 1516
Location: Vancouver, British Columbia
Country: Canada (ca)
PostPosted: Thu Jan 15, 2015 4:51 pm 
Bottom of Page Back to top
If anyone is wondering you can stop the crash by not serializing anything to the world. Since I am using this script to display subtitles it's not a big deal if the player loads the map and the text is not there.

 
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  NeoAxis Forum Index » General » Community Projects, Add-ons & Code Samples

Jump to:  

Next topic
Previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron

All times are UTC




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group