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
Moving screen
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Moving screen

As in an intro:
Spoiler below!

Your PlayerStart is a camera, and you use things like:

PHP Code: (Select All)
void AddPlayerBodyForce(float afXfloat afYfloat afZbool abUseLocalCoords); 
Pushes the player into a certain direction. Note that you need values above ~2000 to see any effects.

afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
abUseLocalCoords - If true, axes are based on where the player is facing, not the world.

PHP Code: (Select All)
void MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist); 
Changes the position of the camera on the player's body.

afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
afSpeed - speed at which the change happens
afSlowDownDist - distance at which to start slowing down (prevents the head from abruptly stopping)

You may need to put them in a timer which loops however if you want to make it move for quite a while.


Otherwise, I got nothing. You might be able to play around with billboard animations if you mean just having the player looking at an image.

Also: if you mean between loading screens, no I don't think so.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 04-09-2014, 05:00 PM by Romulator.)
04-09-2014, 04:57 PM
Find


Messages In This Thread
Moving screen - by Icaab2608 - 04-09-2014, 04:21 PM
RE: Moving screen - by PutraenusAlivius - 04-09-2014, 04:22 PM
RE: Moving screen - by Romulator - 04-09-2014, 04:57 PM



Users browsing this thread: 2 Guest(s)