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
Script Help Screen Shake
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#14
RE: Screen Shake

(01-19-2012, 08:25 PM)Alento Wrote:
(01-19-2012, 08:12 PM)SilentStriker Wrote: There is something wrong with the script x) can I see your whole script? and what's the name of the area the player walks in to?
(01-19-2012, 08:12 PM)SilentStriker Wrote: Think this is the one Smile
{
AddEntityCollideCallback("Player", "HangArea", "Hang_Man", true, 1);

AddEntityCollideCallback("Player", "HangArea", "StartScreenShake", true, 1);
}

void Hang_Man(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("hangman", true);
}

void StartScreenShake(string &in asParent, string &in asChild, int alState);

{
StartScreenShake(2, 2, 1, 0);
}
Why are you using two collidecallbacks to the same area? :p

And you are using the wrong syntax on the Callback ^^

Try this Smile

{
AddEntityCollideCallback("Player", "HangArea", "StartScreenShake", true, 1);
}

void StartScreenShake(float afAmount, float afTime, float afFadeInTime, float afFadeOutTime);

{
SetEntityActive("hangman", true);
StartScreenShake(2, 2, 1, 0);
}


(This post was last modified: 01-19-2012, 08:44 PM by SilentStriker.)
01-19-2012, 08:43 PM
Find


Messages In This Thread
Screen Shake - by Alento - 01-18-2012, 10:03 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:15 PM
RE: Screen Shake - by Alento - 01-18-2012, 10:17 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:20 PM
RE: Screen Shake - by Alento - 01-18-2012, 10:27 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 10:53 PM
RE: Screen Shake - by Alento - 01-18-2012, 11:04 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 11:05 PM
RE: Screen Shake - by Alento - 01-18-2012, 11:20 PM
RE: Screen Shake - by SilentStriker - 01-18-2012, 11:35 PM
RE: Screen Shake - by Alento - 01-19-2012, 04:57 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:12 PM
RE: Screen Shake - by Alento - 01-19-2012, 08:25 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:43 PM
RE: Screen Shake - by Alento - 01-19-2012, 08:55 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 08:57 PM
RE: Screen Shake - by Alento - 01-19-2012, 09:04 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 09:23 PM
RE: Screen Shake - by Alento - 01-19-2012, 09:34 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 09:48 PM
RE: Screen Shake - by Alento - 01-19-2012, 10:12 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 10:32 PM
RE: Screen Shake - by Alento - 01-19-2012, 11:00 PM
RE: Screen Shake - by SilentStriker - 01-19-2012, 11:12 PM



Users browsing this thread: 4 Guest(s)