Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Project Blue Command Question (Penumbra style script)

Author
Message
bman332211
17
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 10th Sep 2010 22:51 Edited at: 10th Sep 2010 22:53
Ok so I'm trying to make a script for a door, first you click on the door and then as you move the mouse the door opens, just like penumbra.

I'm using the mouseclick=1 but what does MOUSE MOVEMENT X [$MMX] do and how would i use it?

Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 11th Sep 2010 05:19
$MMX is an internal variable that returns the value of the last amount of x-axis mouse movement.

If the player moves their mouse to the right, this value would hold a positive value for that frame. If the player moves their mouse to the left, this value would hold a negative value for that frame.

It is used like any other variable, except you cannot use "setvar" on it, since it is an internal variable and the setting is handled by the engine.

If you would like to see an example of its usage, you can open up the "motionblur.fpi" script which should have been included with one of your PB downloads. That script utilizes the mouse movement to alter the motionblur shader for effects.


The one and only,


bman332211
17
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Turn around
Posted: 11th Sep 2010 05:50
oh, thanks for the explanation Ply

Login to post a reply

Server time is: 2026-07-26 05:21:37
Your offset time is: 2026-07-26 05:21:37