Having issues with my touch controls
Toby
Member Posts: 478
I have managed to get my joystick working and fire button, but I have noticed a bug that occurs which I cannot seem to solve.
I have used codemonkeys thumbstick example to make the required joystick which operates just fine, I have added a simple fire button which when touched and held first (touch 1) causes the thumbstick (touch 2) to become locked and snapping to the left?. Touching the stick first (touch 1) and then the button (touch 2) is perfectly fine and works as desired?
Suggestions
I have used codemonkeys thumbstick example to make the required joystick which operates just fine, I have added a simple fire button which when touched and held first (touch 1) causes the thumbstick (touch 2) to become locked and snapping to the left?. Touching the stick first (touch 1) and then the button (touch 2) is perfectly fine and works as desired?
Suggestions
Comments
I got round it by making my ship auto-fire, thus negating a button!
Would that be something you could consider for your game?
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Touch one works fine on both fire button and stick control. Touching and holding the firebutton first (touch one) and then try to grab the stick is where the stick refuses to move.
If I'm a pro developer where is the 'Direct Customer Support ' that comes with my subscription?
Hmmmmmm, maybe going Pro GS is not the best option. SNIFF*
:-(
We're all pretty much new here, I've only been using GameSalad for 8 weeks. The people here are pretty friendly, and if we can help you, most of us will do what we can.
With your particular problem, you're just going to have to try and figure something out. Try everything you can thin of. Even if you are able to get in touch with the staff, they're not going to change the engine. You just have to work with what you've got. We all just have access to the same Behaviors and Rules that you do. You'll need to come up with a creative solution. That's part of the fun/frustration of making games!
Also, there is a big deadline for the MacWorld contest on Monday, so I imagine people are busy polishing up their games.
When this deadline is over, more people should be around to help.
Joe
Im wondering if anyone has figured this out yet, id rather not post a new topic if someone knows a way to fix this.
One thing is i did notice is that when i made the touches visible they seemed to stay onscreen until i touched another location. This could be part of the problem because i think the system reads the touches the wrong way and results in the onscreen joystick becoming "locked" in a direction.
Anyone know how to make the touches disappear when your not touching the screen? ive tried to create a rule : when touch is released destroy this actor, however that has not worked.
Any ideas?
-Stefan
It works just fine when I play it on GS editor, I can mouse click just fine, but touch on the viewer is not working.
Please help, I'm so close to finishing my game...all sound effect are done and added and I just need to test. =(
I should also mention that there is no animation playing on the viewer either. The fires no longer burn and the clouds don't scroll. I am running a release version of the viewer. I'm thinking of switching to debug to try it that way.
My new sounds work great, the game plays silky smooth. I can't wait to release it. Just gotta work out the 3GS issue first.
i made my touches visible, added a color (red for touch 1, blue for touch 2) and made the touches 100x100 pixels so i can see exactly where my touches are. This was helpful to realise the problem i am having with the touches on my thumbstick.
Are you using the thumbstick template?
-Stefan