I'm trying to make an Actor load on a specific date, but I can't get it to work. Say I want an actor to load ONLY on Halloween (October 31st), so I have this:
However this doesn't seem to work. What can I do?
LoadActor("2previewframe.png")..{
InitCommand=cmd(draworder,99999999;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;);
SetCommand=function(self)
if (DayOfMonth() == 31 and MonthOfYear() == 10) then
self:visible(true);
else
self:visible(false);
end
end;
};
However this doesn't seem to work. What can I do?
Last edited: 31 October 2016 3:28pm
~Santikun