Game Development Community

Some Scenes Buttons Only Work Under Certain Simulator Settings

by Jack-S- · in iTorque 2D · 11/11/2011 (6:46 am) · 7 replies

Hi, I have came across a strange problem in that in a scene I have two buttons which have been set to iOS platform target of universal.
Now If I play that scene in say the Ipad iTorque simulation then the buttons work. However if I play this scene in the Iphone4 iTorque simulator the buttons stop working..

I have also built this scene for the xcode iOS simulator and get the exact same problem ipad works but iphone4 doesnt...
Anybody Know whats wrong??
Thanks in Advance.

#1
11/16/2011 (11:07 am)
If anyone has encountered this and knows a solution I would be very gratefull to hear from you. thanks.
#2
11/16/2011 (11:38 am)
Do your buttons have _hd image versions?

More detail would be awesome - what exactly do you mean by "stop working?" Do they not show up? Do they not accept touch input? Do they cause your computer to explode in a giant fireball?

Thanks - hope we can help once we get more information.
#3
11/16/2011 (1:30 pm)
@ Richard Hi, my buttons dont have any hd images they are all set to universal.

My scene is basically a background with two static sprites as buttons.
(im still in the process of coding so nothing fancy at the momment)
when the player touches the buttons they should load other levels which infact they do.

The trouble comes when I run the scene in the iTorque 1.5 simulator.
While running under iPad the buttons are still functional because the touch code is responding properly and so changes the level.
However, if I change the simulator to run as an iPhone4 or iPod or iPhone, then the buttons become un-responsive and dont react to the ontouch commands which means they dont change level.

So im a little confused as I also tried this out in the xcode iphone simulator and got the same behavior.
#4
11/20/2011 (1:27 pm)
Any ideas guys Because this is still a major problem.
Thanks in advance.
#5
11/20/2011 (4:48 pm)
Does the Xcode debug say anything when you press the buttons in the iPhone simulator?
#6
11/29/2011 (4:36 pm)
I believe this is part of an existing bug being fixed for 1.5.1. Can you send me a sample level you are working with? You can replace the art, if you wish, but I need to know the layout, resolution, etc.
#7
12/11/2011 (12:56 pm)
@Michael - I could if it would help you guys fix the problem. There is no custom art just yet, so I am using some of the art that shipped with the software etc. I have had a glance into the level files to see if I could spot anything strange but its not to say that there isnt anything wrong in them.
I havent modified any of the levels in any way in code. All work done has been entirely done through the editor.

If theres a way I could send you the scene in which im having both problems (buttons only responding in the centre area of screen and the buttons only responding in iPad siumulation only) that would be great as I would love to have these problems fixed.

Thanks in advance.