Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Scarry Area"
exit361 Offline
Junior Member

Posts: 8
Threads: 2
Joined: Oct 2010
Reputation: 0
#7
RE: "Scarry Area"

(10-30-2010, 04:31 PM)Dr4konite Wrote: The functions for these kinds of effects are:

1. PlaySoundAtEntity
EXAMPLE:
PlaySoundAtEntity("", "05_event_door_bang.ogg", "Player", 0, false);

The first parameter will name your sound function (needed when you want to deactivate the sound later, but can be empty if it is not looped).
The second is the sound which is meant to be played.
The third is the entity the sound will be played at (in this case it's the player).
The fourth is the fading time (e.g. if you want to fade in).
The fifth defines if the sound should be save (looped).

2. StartScreenShake
EXAMPLE:
StartScreenShake(0.1, 4.7, 0.05, 0.5);

The first will set the amount the screen is shaking.
The second will set the lengh the screen is actually shaking.
The third and fourth define the fadeIN and fadeOUT times.

Trigger this with a CollideCallback and you will be fine.
Try this for yourself - I gave you all you need in my answers.

Greetings
Dr4konite
okey now how to put it in one ? so when player enter area it will play that sound and shake camera
10-30-2010, 06:35 PM
Find


Messages In This Thread
"Scarry Area" - by exit361 - 10-30-2010, 12:51 PM
RE: "Scarry Area" - by Dr4konite - 10-30-2010, 01:11 PM
RE: "Scarry Area" - by exit361 - 10-30-2010, 02:06 PM
RE: "Scarry Area" - by Dr4konite - 10-30-2010, 03:02 PM
RE: "Scarry Area" - by exit361 - 10-30-2010, 03:26 PM
RE: "Scarry Area" - by Dr4konite - 10-30-2010, 04:31 PM
RE: "Scarry Area" - by exit361 - 10-30-2010, 06:35 PM
RE: "Scarry Area" - by anzki - 10-31-2010, 10:49 AM
RE: "Scarry Area" - by Kyle - 11-04-2010, 12:29 AM
RE: "Scarry Area" - by Datenshi92 - 11-06-2010, 09:25 PM
RE: "Scarry Area" - by Tottel - 11-06-2010, 09:28 PM



Users browsing this thread: 3 Guest(s)