2D Toolkit Forum

2D Toolkit => Support => Topic started by: alcove on November 02, 2012, 08:24:12 pm

Title: example demos -- transforms not in pixel units?
Post by: alcove on November 02, 2012, 08:24:12 pm
Just learning this now, and was confused because the documentation seems to refer to placing items via pixel units that are interpreted by the toolkit camera -- but the examples, such as the sheep in the field, seem to have transform values for x and y between 0 and 1.

Am I missing something basic?

Thanks,
Scott
Title: Re: example demos -- transforms not in pixel units?
Post by: unikronsoftware on November 03, 2012, 12:25:46 am
There are two options - use a normal ortho camera (units will be whatever arbitrary ortho size you pick), or use the tk2dCamera, where the units are pixel sizes. The tk2dCamera is used in sample 11.
Title: Re: example demos -- transforms not in pixel units?
Post by: alcove on November 08, 2012, 05:26:39 pm
Thanks for the quick response. I was confused by the number of references to pixel units and then the use of the normal camera in most of the examples.