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 an intro?
RaideX Offline
Member

Posts: 212
Threads: 33
Joined: May 2013
Reputation: 7
#7
RE: How to make an intro?

Quote:Thanks so much, dude. It works now Smile
Could help me with something else please, I want to make it that when you enter a certain area a message pops up.

Glad it worked Big Grin. For you other question i'll try to explain it as easy as the first one c:

PHP Code: (Select All)
OnStart() {
AddEntityCollideCallback("Player""CollideArea""CollideFunction"true1)
//When "Player" collides with "CollideArea" the "CollideFunction" is called and the area gets disabled (true) when you enter it (1)
}

void CollideFunction (string &in asParentstring &in asChildint alState) {
SetMessage("TextCategory""TextEntry"x.xf); 
//"TextCategory" is the category in your .lang file and "TextEntry" the entry. x.xf is how long it should be displayed (0 means auto calculate)


Regarding the .lang file: You basically have to write your text in this file and tell the game then where to get the text to display from.

Oh and of course you will have to create the "CollideArea" with the level editor, just in case you didn't know.

EDIT: You can also get EVERYTHING you want to code on this site.

If you don't draw first, you don't get to draw at all... -The False Shepherd
(This post was last modified: 12-01-2013, 10:53 AM by RaideX.)
12-01-2013, 10:50 AM
Find


Messages In This Thread
How to make an intro? - by goodcap - 11-29-2013, 12:40 PM
RE: How to make an intro? - by RaideX - 11-29-2013, 01:29 PM
RE: How to make an intro? - by PutraenusAlivius - 11-29-2013, 01:52 PM
RE: How to make an intro? - by goodcap - 11-30-2013, 05:49 PM
RE: How to make an intro? - by RaideX - 11-30-2013, 08:01 PM
RE: How to make an intro? - by goodcap - 12-01-2013, 12:32 AM
RE: How to make an intro? - by RaideX - 12-01-2013, 10:50 AM



Users browsing this thread: 1 Guest(s)