« Return to Thread: global offsets revisited

Re: global offsets revisited

by Andreas Raab :: Rate this Message:

Reply to Author | View in Thread

> You can get the current project's absolute screen coordinates by
>
>     Sensor cursorPoint - self hand position
>
> assuming self is some CPlayer. To show the screen bounding box of  some
> player:
>
>     Display flash: (self globalBounds translateBy: Sensor cursorPoint -  
> self hand position)
>
> which even works for deeply nested and transformed players (Sophie  uses
> a scaled coordinate system).

That's a great (and very evil :-) hack.

Cheers,
   - Andreas
_______________________________________________
Tweak mailing list
Tweak@...
http://impara.de/mailman/listinfo/tweak

 « Return to Thread: global offsets revisited

LightInTheBox - Buy quality products at wholesale price