Hi Guys,
I have a problem regarding the buttons in my app mainmenu.
I cant seems to fit the buttons to any devices. The buttons will be stretched or out of place.
Any ideas?
Here is the Buttons code:
Enter\_Btn = widget.newButton { width = 157, --width of the image file(s) height = 222, --height of the image file(s) defaultFile = "Images/Enter.png", --the "default" image file onRelease = onEnterBtnRelease -- event listener function } Enter\_Btn.x = display.contentWidth \* 0.25 Enter\_Btn.y = display.contentHeight / 3.5
There are 4 buttons, 2 on top 2 below. It cant seems to fit to the device screen.
I am testing out on Iphone 5 in the simulator. Once I placed everything correctly on the Iphone 5 and changes to another device, the buttons became stretched and overlapping each other.