why cant i store this in my actors text??
Posted: Sat Jul 14, 2012 6:23 pm
i have tried a bunch of different things, and for some reason, no matter what i do, i can get this to store in my actors text?
here is what it looks like. no matter what i do, the actors text doesnt change, but for some reason the dragging still works.
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;
}
}
}