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 end a custom story
lolopon Offline
Junior Member

Posts: 10
Threads: 5
Joined: Oct 2011
Reputation: 0
#1
How to end a custom story

Hi!

Im wondering how you make the credit start rolling and ending a custom story when i enter a door.
Im still very "noob" at this custom story making and can't figure this one out.

Thanks in advance
10-19-2011, 03:20 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: How to end a custom story


This was hard for me aswell. I found a way around this. Instead of it actually making it start rolling once I interact with the door. I made an area script around the door, so when i stood on it, it would load the credits. Use this


void OnStart()

{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "Load" , true , 1);
}

void Load(string &in asParent, string &in asChild, int alState)

{
StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
}

(This post was last modified: 10-20-2011, 12:21 PM by flamez3.)
10-20-2011, 12:21 PM
Find




Users browsing this thread: 1 Guest(s)