Hello Guest

Author Topic: Position sprite differently when in portrait vs. landscape  (Read 3865 times)

edb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
Position sprite differently when in portrait vs. landscape
« 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Position sprite differently when in portrait vs. landscape
« Reply #1 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.

edb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Position sprite differently when in portrait vs. landscape
« Reply #2 on: November 19, 2014, 03:52:04 pm »
Ok - thanks for the quick reply.