here is what it looks like. no matter what i do, the actors text doesnt change, but for some reason the dragging still works.
- Code: Select all
#define CLICK 0
#define RELEASE 1
#define DRAG 2
void testDragClick(int type)
{
if(testing==1)
{
ChangeTransparency("helper", 0.000000);
switch(type)
{
case CLICK:
followMouse=1;
break;
case RELEASE:
followMouse=0;
break;
case DRAG:
if(followMouse==1)
{
char thisText[60];
x=controlBox.x+xmouse;
y=controlBox.y+ymouse;
sprintf(thisText, "%s: %i, %i", clonename, controlBox.x+xmouse, controlBox.y+ymouse);
strcpy(helper.text, thisText);
}
break;
}
}
}