Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GreenflyStudios

Pages: [1]
1
Support / Clipping a series of sprites to a rectangular area
« on: August 01, 2014, 11:24:21 pm »
Hi all,

Help would be greatly appreciated with this. I have the following (rough) window with a series of sprites running through at the bottom (the train):


What I would like to do is clip the train so that it only appears within the red outlined window. Anything outside of this window is rendered transparent. Is this possible to do? I've looked around and the clipping only seems to apply to a singular sprite, not a series of them nor a rectangular mask of the window/contents.

Any help is greatly appreciated!

2
Support / Multiple Resolutions & Pixel Perfect
« on: October 18, 2013, 11:45:01 pm »
Hi there,

I've generated my assets at 1600x2560 in anticipation of covering all device resolutions. I've now set up 1x, 2x & 4x atlases. Being a long-time iOS Cocos2D user, I've set the native res to 1x (400x640) & the preview res to 320x480. The camera has also been set to pixel perfect.

My question is do I need to do anything more? When switching between different stock preview options (iPhone 5, iPad), my textures become incredibly small. What is the best way to detect the device resolution and select the correct atlas?

Any help is greatly appreciated.

Pages: [1]