New to madrix programming...
Posted: Mon Jul 14, 2014 10:34 pm
Hello, I was wondering if there is a way to change the size of a certain shape with the code provided in the madrix script manual. Below is the sample of your code. Any help would be appreciated, thank you.
Code: Select all
@scriptname="";
@author="";
@version="";
@description="";
int g_startTime;
int g_run;
void InitEffect()
{
time t = GetTime();
g_startTime = t.hour * 3600 + t.min * 60 + t.sec;
g_run = 0;
}
void PreRenderEffect()
{
time t = GetTime();
int t2 = t.hour * 3600 + t.min * 60 + t.sec;
if(t2 - g_startTime >= 1)
{
g_startTime = t2;
switch(g_run % 6)
{
case 0: SetShapeType(SHAPE_TYPE_CIRCLE_OUTLINED_EXPLODE); break;
case 1: SetShapeType(SHAPE_TYPE_CIRCLE_OUTLINED); break;
case 2: SetShapeType(SHAPE_TYPE_CIRCLE_OUTLINED_IMPLODE); break;
case 3: SetShapeType(SHAPE_TYPE_SQUARE_OUTLINED_EXPLODE); break;
case 4: SetShapeType(SHAPE_TYPE_SQUARE_OUTLINED); break;
case 5: SetShapeType(SHAPE_TYPE_SQUARE_OUTLINED_IMPLODE); break;
default: break;
}
g_run++;
}
}
void PostRenderEffect()
{
}
void MatrixSizeChanged()
{
InitEffect();
}