SOLVED -Placing on screen buttons on different devices

Jg41095

  • Posts: 39
Hi.  Having some trouble figuring out how to place buttons in the same place on different sized devices.

Attachments are from an iPhone 5s and IPad Mini.  The button is anchored and placed on the scene.  Would I have to use the <running on iPhone> block? Or is there a more simple approach.

Button should be on the bottom left corner

« Last Edit: August 11, 2017, 07:48:15 pm by Jg41095 »

JeffreyDriver

  • Posts: 2262
Position them relative to the screen. For example 'screen height - height of self'

Jg41095

  • Posts: 39
Position them relative to the screen. For example 'screen height - height of self'

Thanks! solved my problem!  Set the button to the bottom right corner on both devices.  Quick noob question, what would be the way to set it to bottom left?  :D

Working event attached.

JeffreyDriver

  • Posts: 2262
In your previous image, the button is on the bottom left. Did you mean right?

Left:
X 0, Y screen height - height of self

Right:
X screen width - width of self, Y screen height - height of self

Jg41095

  • Posts: 39
In your previous image, the button is on the bottom left. Did you mean right?

Left:
X 0, Y screen height - height of self

Right:
X screen width - width of self, Y screen height - height of self
yes, my mistake. This works perfectly, thanks so much!