How do you convert absolute co-ordinates to co-ordinates on a scaled layer

Forums Programming cocos2d support (graphics engine) How do you convert absolute co-ordinates to co-ordinates on a scaled layer

This topic contains 1 reply, has 2 voices, and was last updated by  Gray Olson 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
July 28, 2011 at 2:39 pm #233782

petemyster
@petemyster

Hey,

I have a layer which is scaled, and I want to be able to click on the screen and it gets the co-ordinates of that click on the layer which could be scaled by any decimal, and return it as the co-ordinates in that layer instead of the co-ordinates on the main screen.

Can anyone help me? Thanks

July 28, 2011 at 5:18 pm #341066

Gray Olson
@termhn

[layer convertToNodeSpace:location];

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.