Problem with button touches not working on IPad
Erised
Member Posts: 21
I designed my controls first with the keyboard, since I had not paid to be able to test on my devices. After that, I added buttons for left, right, fire and jump. In each button, I changed a game attribute that I had created for that button to true. For example, there was a game attribute called fire button pressed. I set it so that this attribute would be changed to true when the actor received a touch event. Then, I altered the firing command on my player so that it would activate either through a key press, or fire button pressed being true. It works properly in GameSalad preview, but when I actually previewed it on my IPad, the buttons are not working at all.
i have double checked every rule I have used, and they all seem to be correct. Any idea what might be causing this would be greatly appreciated.
i have double checked every rule I have used, and they all seem to be correct. Any idea what might be causing this would be greatly appreciated.
Comments
Rule when touch is pressed
--Rule when actor is Left
---spawn WeaponFire to left
---Otherwise: spawn actorWeaponFire to Right
===
How are you triggering the change in the gameAttribute boolean "Fire button pressed" to true/false?
and don't think you need that attribute... as the button only fires when pressed.
MH
you are going to have to click on the button that you have in the scene and unlock it and edit that instance...
Rule when touch is pressed
--Rule when
---Attribute: [...] CurrentScene > Layers > layer your Actor's on>playerActor > Image | is | FullNameOfYourLeft.png
-----do Left fire..
---Otherwise:
-----do Right fire
will save you and device some effort...
MH