The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Wake Up weird shaking effect
RavenInvazion Offline
Junior Member

Posts: 5
Threads: 2
Joined: Nov 2015
Reputation: 0
#1
Wake Up weird shaking effect

Hello,

Although I've recently started my adventure with HPL editor, I wanted to make a nice start for the game, using Wake Up script. My coding is very amateur, though I kind of understand what is where and why. Here it is:

PHP Code: (Select All)
void OnStart() 

    
wakeUp();
}
void wakeUp () 
{
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
PlaySoundAtEntity("Player""react_breath.snt""Player"0.1false);
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"11.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer)
{
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
PlaySoundAtEntity("Player""react_breath.snt""Player"0.1false);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
    
PlaySoundAtEntity("Player""react_pant.snt""Player"0.1false);


When I enter the game, it begins fine, but as soon as my character "opens eyes" the view is heavily shaking. I tried removing some functions from the script, but it didn't help at all. I've read that the spawn point shouldn't touch anything, but mine is floating in the middle of a room, and there's enough space for it. I appreciate any help.[/quote]
11-09-2015, 10:31 PM
Find


Messages In This Thread
Wake Up weird shaking effect - by RavenInvazion - 11-09-2015, 10:31 PM
RE: Wake Up weird shaking effect - by Mudbill - 11-09-2015, 10:51 PM
RE: Wake Up weird shaking effect - by Mudbill - 11-11-2015, 09:36 PM



Users browsing this thread: 1 Guest(s)