Ok so it is based on the screen resolution that you specify in Config settings?
I am working with the canvas and I have a series of canvas questions now because the scripting reference doesn't really specify the things I am trying to do. But I am not quite sure of the question as of yet, because I am still playing with it and trying to discover it on my own.
Yet though, how to I get the coordinates of an Actor to be used to draw onto the Canvas.
Say:
I am dragging and dropping an Actor around the canvas and I want the canvas to draw the Actor at the exact position of where I dropped it.
Now I have done this using an Activation Event, although it requires the Signal come from a specified clone rather than any Actor with the same name. With this method I wouldn't be able to destroy the Actor. Which IS something I (may or may not) need to do.
Specifically, what method would I use to convert the Actor's screen coordinates into Canvas Coordinates.I, also, was trying to draw a box on the Canvas (around) the coordinates of a Filled Region. Using this:
Filled Region with name myActor.
- Code: Select all
setpen(255, 0, 0, 0.0, 3);
moveto(myActor.x - myActor.width/2 , myActor.y - myActor.height/2);
lineto (myActor.x + myActor.width/2 , myActor.y - myActor.height/2);
lineto (myActor.x + myActor.width/2 , myActor.y + myActor.height/2);
lineto (myActor.x - myActor.width/2 , myActor.y + myActor.height/2);
lineto (myActor.x - myActor.width/2 , myActor.y - myActor.height/2);
But, nothing was draw to the Canvas.