2D Toolkit Forum

2D Toolkit => Support => Topic started by: edb on November 19, 2014, 12:41:09 am

Title: Position sprite differently when in portrait vs. landscape
Post by: edb on November 19, 2014, 12:41:09 am
I'm working on a mobile game that allows you to play in portrait or landscape.  I'd like to position a sprite in a different place when it's in portrait mode.  Is there anything in 2d Toolkit that could position a sprite in a different place depending on portrait vs. landscape?

My backup plan is to have a PostionStuff() function that gets called when a change from portrait <--> landscape is detected, but first wanted to see if tk2d had some nifty trick.
Title: Re: Position sprite differently when in portrait vs. landscape
Post by: unikronsoftware on November 19, 2014, 10:41:47 am
Hi,

There isn't anything apart from the basic anchoring stuff thats available here. If you need to position differently at arbitrary locations, you'll have to roll your own solution there.
Title: Re: Position sprite differently when in portrait vs. landscape
Post by: edb on November 19, 2014, 03:52:04 pm
Ok - thanks for the quick reply.