- Code: Select all
//WORKS
Actor* myActor = getclone("ItemSlotHitBox.0");
int r_x = myActor->xscreen-xscreen;
int r_y = myActor->yscreen-yscreen;
moveto(r_x , r_y);
- Code: Select all
//DOESNT WORK
Actor* myActor = getclone("ItemSlotHitBox.0");
int r_x = myActor.xscreen-xscreen;
int r_y = myActor.yscreen-yscreen;
moveto(r_x , r_y);
- Code: Select all
//DOESN'T WORK
Actor* myActor;
myActor = getclone("ItemSlotHitBox.0");
int r_x = myActor->xscreen-xscreen;
int r_y = myActor->yscreen-yscreen;
moveto(r_x , r_y);
This was written into my Canvas actor.
While with CreateActor:
- Code: Select all
Actor* myActor;
myActor = CreateActor("Draggable", "simplegear", "(none)", "(none)", x, y, false);
That is perfectly acceptable? What is the difference?