Do not just set visible to false, do not even load the graphic unless the player is human.

This commit is contained in:
Steve Checkoway
2007-05-19 22:04:40 +00:00
parent 3329d87c51
commit c2f99f83cd
@@ -2,12 +2,14 @@ local OnCommand = cmd(diffusealpha,0;linear,0.5;diffusealpha,1)
local OffCommand = cmd(linear,0.5;diffusealpha,0)
local t = Def.ActorFrame {
LoadActor( '_difficulty frame p1' ) .. {
InitCommand = cmd(player,PLAYER_1;x,SCREEN_CENTER_X-275;y,SCREEN_CENTER_Y-15);
Condition = GAMESTATE:IsHumanPlayer( PLAYER_1 );
InitCommand = cmd(x,SCREEN_CENTER_X-275;y,SCREEN_CENTER_Y-15);
OnCommand = OnCommand;
OffCommand = OffCommand;
};
LoadActor( '_difficulty frame p2' ) .. {
InitCommand = cmd(player,PLAYER_2;x,SCREEN_CENTER_X-82;y,SCREEN_CENTER_Y-15);
Condition = GAMESTATE:IsHumanPlayer( PLAYER_2 );
InitCommand = cmd(x,SCREEN_CENTER_X-82;y,SCREEN_CENTER_Y-15);
OnCommand = OnCommand;
OffCommand = OffCommand;
};