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
Need some help !
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#13
RE: Need some help !

narutohokager: Well functions don't just randomly refuse to work; it's very likely that the collision between the player and the portrait area is never happening. Check the area, make sure its name matches the name of the area you scripted the callback for.


PHP Code: (Select All)
//---!! IMPORTANT !!--//
// make sure you change "areaPortrait" to match the area in your map
void OnStart()
{
AddEntityCollideCallback("Player""areaPortrait""CollideAreaPortrait"true1);
}

// the code you posted, with some lines I added to help you debug
void CollideAreaPortrait(string &in asParentstring &in asChildint alState)
{
AddTimer("TimerFadeIn"1.5f"FadeInGuardien");
FadeOut(0.1f);AddDebugMessage("faded out"false);
}
void FadeInGuardien(string &in asTimer)
{
FadeIn(0.05f);
StartScreenShake(0.1f,10.5f,0.5f);
FadeSepiaColorTo(151);
SetPlayerActive(true); AddDebugMessage("fading to sepia"false); 


Also, try separating the sepia fade line to a different function. It's possible fade in/out conflicts with other screen effects -- I don't know for sure because I've never tested for it, but you can never be certain.

(This post was last modified: 12-16-2011, 07:32 PM by palistov.)
12-16-2011, 07:31 PM
Find


Messages In This Thread
Need some help ! - by narutohokager - 12-13-2011, 10:13 PM
RE: Need some help ! - by Statyk - 12-14-2011, 01:31 AM
RE: Need some help ! - by narutohokager - 12-15-2011, 09:45 PM
RE: Need some help ! - by Your Computer - 12-15-2011, 10:58 PM
RE: Need some help ! - by nemesis567 - 12-14-2011, 01:46 AM
RE: Need some help ! - by Statyk - 12-14-2011, 02:20 AM
RE: Need some help ! - by Your Computer - 12-14-2011, 04:59 AM
RE: Need some help ! - by nemesis567 - 12-14-2011, 01:14 PM
RE: Need some help ! - by palistov - 12-15-2011, 11:54 PM
RE: Need some help ! - by Karai16 - 12-16-2011, 12:37 AM
RE: Need some help ! - by narutohokager - 12-16-2011, 06:39 PM
RE: Need some help ! - by Your Computer - 12-16-2011, 06:42 PM
RE: Need some help ! - by palistov - 12-16-2011, 07:31 PM



Users browsing this thread: 1 Guest(s)