Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make text appear on screen for 5 secs once interactign with an object
anzki Offline
Member

Posts: 88
Threads: 6
Joined: Apr 2010
Reputation: 1
#2
RE: How to make text appear on screen for 5 secs once interactign with an object

Add message:
1.Make category to language file with any name you want to! Let's say category named:"Example". (To easily add this use HPLangtool found in the same folder as the level editor.)
2.Inside the category ("Example", or anything you have put it's name.) create entry with any name you want. Example; "Entry1".
3.Use this script where you want the message to be showed:
Code:
SetMessage(string &asTextCategory, string &asTextEntry, float afTime);
-string &asTextCategory and string &asTextEntry will be the name of a category and entry.
-float afTime will be the time the message is on screen in form; 1.0f(=1 second.)

Example using category "Example" and entry "Entry1", showing the entry for 20 seconds:
SetMessage("Example", "Entry1", 20.0f);

For interaction check tutorials in Frictional Games wiki.

[Image: 2qnr5av.png]
(This post was last modified: 11-06-2010, 07:42 PM by anzki.)
11-06-2010, 07:41 PM
Find


Messages In This Thread
RE: How to make text appear on screen for 5 secs once interactign with an object - by anzki - 11-06-2010, 07:41 PM



Users browsing this thread: 1 Guest(s)