Hello,
I've been trying to write a script that makes an invisible, passable block appear and become solid once a variable (boss_dead) is set:
var boss_dead = 1; // the boss is dead
action obj_hidden
{
my.passable = on;
my.alpha = 0;
my.transparent = on;
while( my )
{
if( boss_dead ) // if boss has died
{
if( my.transparent == on )
{
my.passable = off;
my.alpha += time_step*4;
if( my.alpha >= 100 )
{
my.alpha = 100;
my.transparent = off;
}
}
}
wait(1);
}
}
But the passable flag seems to have no effect when I attach my action to a map entity. My player object still collides with the map entity, even though it has PASSABLE set on. Is there any way I can get around this? I tried giving the map entity a lower push value than the player and using "IGNORE_PUSH" when I move player, but it makes no difference.