Second Touch not recognized
vixion1337@gmail.com
Member Posts: 6
Hi all,
i have a small problem that i want to fix and it is follow:
I have an actor (actor1) on the screen that must be pressed and hold down trough touch, and only when you hold it down you can spawn actors by touching on the screen on random positions. Now i have that when i press actor 1, and attribute1 goes to 1. When released attribute1 goes to 0.
I also have an invisible actor (actor2) that covers the whole screen, this one is use when: is pressed and atrribute 1 = 1, then spawn actor at mouse.position.x +mouse.position.y.
Both work perfectly on there own, but when i link them together like here above, it doesn`t work. I hold down actor1 and press anywhere on the screen (what would be actor2 because it covers the whole screen), it doesn`t recognize the second touch and doesn`t spawn anything.
Any idea how to solve this?
Hope my discription is clear, my english isn't that awesome.
Thank you in advance
i have a small problem that i want to fix and it is follow:
I have an actor (actor1) on the screen that must be pressed and hold down trough touch, and only when you hold it down you can spawn actors by touching on the screen on random positions. Now i have that when i press actor 1, and attribute1 goes to 1. When released attribute1 goes to 0.
I also have an invisible actor (actor2) that covers the whole screen, this one is use when: is pressed and atrribute 1 = 1, then spawn actor at mouse.position.x +mouse.position.y.
Both work perfectly on there own, but when i link them together like here above, it doesn`t work. I hold down actor1 and press anywhere on the screen (what would be actor2 because it covers the whole screen), it doesn`t recognize the second touch and doesn`t spawn anything.
Any idea how to solve this?
Hope my discription is clear, my english isn't that awesome.
Thank you in advance
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Even when i begin from scratch and try to make this core mechanic work, it doesn't work, it only works in reverse order...
i am totaly lost, but i think i know what the problem is, only i dont know to solve it. Because i also discoverd then when i remove the condition of mouse.postion.x <280, i kinda works, but then the actor spawns where i put and hold my first finger when i touch the screen with my second finger and not where i touch it with my second finger..
i am realy lost.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
when game.energy.touche is 1 spawn actor at game.touches.touch 2.x + game.touches.touch 2.Y
This did the trick, but i feel its an unnecessary solution and it can be done easier. But thank you for offering your help You can close or remove this topic now. Feel like i posted it to early maybe as i just fixed it within the 2 hours i posted it, sorry for that.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS