Author Topic: Newb Question - Scaling  (Read 2007 times)

AntLewis

  • Guest
Newb Question - Scaling
« on: February 26, 2013, 06:26:49 AM »
Hi there, I've noticed in a lot of the tutorial videos I've been watching, that when scaling a button, people tend to scale the image of the button, rather than the parent, which contains the collider (and scaling it would also scale its the image which is it's child). I'm wondering if there's any particular reason for this?

Cheers

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Newb Question - Scaling
« Reply #1 on: February 26, 2013, 07:13:37 AM »
No reason. You can scale what you want.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Newb Question - Scaling
« Reply #2 on: February 26, 2013, 03:36:14 PM »
With sliced sprites, you'll want to scale the sprite itself, or you will also scale the otherwise "unstretchable" corners and sides.

Other than that, scale all the things (but then don't rely on MakePixelPerfect)