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
#6
RE: Screen Shake

(01-18-2012, 10:27 PM)Alento Wrote:
(01-18-2012, 10:20 PM)SilentStriker Wrote: If you want it to start shake when the player walks in to an area you need to make a collidecallback and then use the use screenshake without the void inside the callback Smile You get it or are you very new at scripting and don't know anything? Smile
haha well ya, with that said.. i started scripting like.. 2 days ago ^^
So, yeah, i'm a bit retarded on this Tongue i try as hard as i can ^^

but i really don't get it. i mean

this is what my script to shake looks like now:

void OnStart()

{

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

void StartScreenShake(float afAmount, float afTime, float afFadeInTime, float afFadeOutTime);
{
StartScreenShake(3.0f, 2.3f, 0.0f, 0.0f);
}
Remember that when making a callback you need to use the right callback syntaxes so it should look like:

void OnStart()

{
AddEntityCollideCallback("Player", "THENAMEOFTHEAREA", "THECALLBACKNAME", true, 1);
}

void THECALLBACKNAME(string &in asParent, string &in asChild, int alState)
{
StartScreenShake(2, 2, 1, 2);
}
Smile

(This post was last modified: 01-18-2012, 10:55 PM by SilentStriker.)
01-18-2012, 10:53 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: 1 Guest(s)