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
Problems with screenshake
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Problems with screenshake

This page has the following script, as well as everything you could ever need to script for HPL2, please bookmark it in your browser for future reference. To help navigate the page, you can use "Ctrl+F" to find what you need:

http://wiki.frictionalgames.com/hpl2/amn..._functions


I've taken the liberty to search for the desired script for you:

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

Shakes the screen.
afAmount - intensity of the shake
afTime - duration of the shake
afFadeInTime - time in seconds until full intensity is reached
afFadeOutTime - time until screen is back to normal

Also, if you just copy and paste everything, you will never learn; it is like having someone learn to read/write for you. My suggestion is to play with the different scripts and float values (which are decimals) until you become comfortable enough to use it in your story.

I rate it 3 memes.
(This post was last modified: 05-23-2012, 09:28 PM by Adny.)
05-23-2012, 09:26 PM
Find


Messages In This Thread
Problems with screenshake - by stevenbocco - 05-23-2012, 09:15 PM
RE: Problems with screenshake - by Adny - 05-23-2012, 09:26 PM
RE: Problems with screenshake - by stevenbocco - 05-23-2012, 09:35 PM
RE: Problems with screenshake - by Adny - 05-23-2012, 09:43 PM
RE: Problems with screenshake - by stevenbocco - 05-24-2012, 07:52 AM



Users browsing this thread: 1 Guest(s)