Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about, FadePlayerRollTo
Author Message
Death Icarus Offline
Junior Member

Posts: 19
Joined: Sep 2011
Reputation: 0
Post: #1
Question about, FadePlayerRollTo
everytime i try to use it, it never works right. ive tried differnt combinations, and copied and pastes peoples script, and it always does the same thing. the characters head will turn sideways, but it just like vibrates real fast everytime. im not really sure whats going on.

anyone know what im doing wrong? or why its happening?
here's a small example of script i used and it happend.



FadePlayerRollTo(50, 220, 220);
SetPlayerCrouching(true);
FadeOut(3.0f);
ChangeMap("TestMap2", "PlayerStartArea_1", "", "",);
02-05-2012 09:43 AM
Find all posts by this user Quote this message in a reply
Tiiwh Offline
Junior Member

Posts: 47
Joined: Nov 2011
Reputation: 1
Post: #2
RE: Question about, FadePlayerRollTo
FadePlayerRollTo(50,220,220);

I almost use the same FadePlayerRollTo as you do, mine also vibrates but isn't that how it's supposed to be? I mean, I like it! Blush

[Image: deaceaf76907.gif]
02-05-2012 10:19 AM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 868
Joined: Aug 2011
Reputation: 26
Post: #3
RE: Question about, FadePlayerRollTo
void FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);

Rotates the position of the camera on the player's body.


afX - angle of rotation of head, positive being counter-clockwise
afSpeedMul - speed (possibly acceleration) multiplier of the rotation (default 1, which is really slow)
afMaxSpeed - maximum speed of rotation

If you inspect it closely -> Then Angle of rotation is how much you rotate to what angle.

afspeedmul means how fast you want to slow it. More you put, faster it goes. If you pit it too fast, it will start vibration as it can fix itself to your desired rotation. Reduce it smaller Smile (Not sure, but I think so)

afMaxSpeed -> I am not sure of that myself, but i guess you should use same as afspeedmul

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 02-05-2012 12:19 PM by Elven.)
02-05-2012 12:18 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)