
Also, delete the opening bracket ( { ) after the return; - line.
And delete the "bool PlayerIsOnSkip" and place it on top if that room script file (the CTRL+E one)! Then it should work!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if ( x == y )
{
// do something
}
else
{
// do something else
}
bool PlayerIsOnSkip;
PlayerIsOnSkip = false;
PlayerIsOnSkip = true;
PlayerIsOnSkip = false;
if ( !PlayerIsOnSkip )
// if player is currently NOT on skip
{
// do stuff
}
Quote from: ManicMatt on Thu 05/01/2006 21:17:03
I bet Ashen, dkh or strazer could provide a brilliant answer, but I'm going to try until then!
function fade_object ( Object *_object, FADE_TYPE type )
// gradually fades an object in or out
{
int counter;
if ( type == IN )
// if we are fading the object in
{
// set everything up
counter = 100;
_object.Transparency = 100;
_object.Visible = true;
while ( counter > 0 )
// fade it in
{
counter--;
_object.Transparency = counter;
Wait ( 1 );
}
}
else if ( type == OUT )
// if we are fading the object out
{
// set everything up
counter = 0;
_object.Transparency = 0;
_object.Visible = true;
while ( counter < 99 )
// fade it out
{
counter++;
_object.Transparency = counter;
Wait ( 1 );
}
// now mark the object as invisible
_object.Visible = false;
}
}
enum FADE_TYPE
{
IN,
OUT
};
import function fade_object ( Object *_object, FADE_TYPE type );
// fade the title in
fade_object ( oTitle, IN );
// move the player character
player.Walk ( 100, 100, eBlock );
// then fade the title out again
fade_object ( oTitle, OUT );
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.281 seconds with 15 queries.