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
Shake Function
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Shake Function

The reason it's not working is because you're not calling the function "ShakeFunction" anywhere.

IGNORE THIS! READ MUDBILL'S ANSWER INSTEAD

Spoiler below!

If that's not calling, nothing inside it will call either.
Question is: When do you want the shake to start?


We can quickly make it start by making ShakeFunction into a timer.
PHP Code: (Select All)
void OnStart()
{
AddTimer(""4"ShakeFunction");
}

void ShakeFunction(string &in asTimer)
{
StartScreenShake(1,2,1,4);


I hope you understand.


Trying is the first step to success.
(This post was last modified: 09-23-2014, 07:47 AM by FlawlessHappiness.)
09-23-2014, 07:06 AM
Find


Messages In This Thread
Shake Function - by Carlos2295 - 09-23-2014, 05:33 AM
RE: Shake Function - by FlawlessHappiness - 09-23-2014, 07:06 AM
RE: Shake Function - by Mudbill - 09-23-2014, 07:07 AM
RE: Shake Function - by FlawlessHappiness - 09-23-2014, 07:44 AM
RE: Shake Function - by Mudbill - 09-23-2014, 08:00 AM



Users browsing this thread: 1 Guest(s)