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 - a55b0t

Pages: [1]
1
Thanks. I had some other issues I fixed that were causing problems as well so it took me a while to track it down.

I did have to use tk2dCamera.CameraSettings.rect for it to work in the end though.

2
Support / Modify Camera Viewport Rect in javascript (tk2d 2.4 beta 3)
« on: March 10, 2014, 03:43:50 am »
Hi,

I'm curious if I can access the camera viewport rect in script now. I am using myCamera.rect = Rect(X,Y,W,H) and it doesn't seem to be working.

Basically I am trying to use a square camera in the middle of the screen for gameplay / menus, and using an overlay to cover the rest of the screen depending on the aspect ratio.

I was also wondering if I need to use anchored viewport clipping, but my overlay is loaded in a separate scene so it stays consistent across the game (making me unable to link the cameras).

As an aside, I've been playing around with some nested layout container sizers but haven't been having a lot of luck. Is it okay to parent them to each other? I'll try to work with them a bit more so I can provide some better details..

Thanks for the great product. Other than a few snags here and there it's been a great help to me on multiple projects.

Pages: [1]