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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Wake Up weird shaking effect

Shaking? Does it not happen if you exclude the entire sequence?

Since there's no StartScreenShake effect in there, I can only think of it being caused by FadeRadialBlurTo or FadeImageTrailTo. The others don't really impact such a thing in any way.

11-09-2015, 10:51 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Wake Up weird shaking effect

I think I've noticed it happen with FadePlayerRollTo. If it doesn't disappear when excluding FadeRadialBlur, try FadePlayerRollTo.

Trying is the first step to success.
11-10-2015, 09:22 AM
Find
RavenInvazion Offline
Junior Member

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

Excluding FadeRadialBlur reducedd the shaking effect a bit, but excluding FadePlayerRollTo after this removed the shaking completely.
11-11-2015, 09:27 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Wake Up weird shaking effect

You should try testing around with see if it happens every time you use those scripts because it really shouldn't. Though, I have experienced that sometimes the RadialBlur or ImageTrail can be a bit too strong, but I haven't experienced the rolling to make things shaky. All it should do is rotate the camera view.

11-11-2015, 09:36 PM
Find
RavenInvazion Offline
Junior Member

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

Hm... it seems that RadialBlur alone isn't causing it, but whenever I add PlayerRollTo, the shaking appears.

Edit: I lowered the PlayerRollTo speed and it removed the shake effect. Weird.
(This post was last modified: 11-11-2015, 09:59 PM by RavenInvazion.)
11-11-2015, 09:55 PM
Find




Users browsing this thread: 1 Guest(s)