Do actors change size on different device previews?
Hey guys,
I'm trying to set up my game so it works on every device.
The project is originally in iPad Landscape size (Width of 1024).
I have 10 actors on screen from left to right and they are exactly 100 pixels wide.
I set up the actors with a Display Text that displays self.Size.Width
If I preview it for iPad it correctly says 100 on the actors. However if I change it to something else it stays at 100.
For example, if I select iPhone 5 Landscape the screen will now have a width of 568 pixels. The actors still, for some reason, say 100 (from the display text) and there is enough room along the x axis for all 10 actors to fit on the screen, and then some.
I cannot comprehend how even though the width is now 568 pixels, I can get more than 1000 pixels worth of actors along the X axis.
Not only that, but they don't reach the end of the screen. On the iPad they go from approximately 10 to 1010, but when I change it to iPhone 5 Landscape, they go from the far left to only about three quarters of the way to the right.
Any help/explanations would be greatly appreciated.
Thanks!
Daniel
Comments
Check your scene size under Scene-->Attributes. There's a bug that prevents the scene from re-sizing correctly when you select a different platform (e.g. iPad Landscape to iPhone 5 Landscape). If it still says 1024x768, that's the cause of the confusion.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks for the quick reply @tatiang you were right.
It does still show that the scene width 1024.
How would I go about fixing this so it fixes the size of everything?