Sections

Sunday, July 20, 2014

Better use 1

Hey there,

We had another, more classic, approach to the controls. This time I'll present you this little video (sorry about the quality) with a single pad and 2 buttons. I do realize that using a copy of console controllers looking inputs on a touch device, but well, we are working with it because it was going to be a pc games first then for learning purposes became a mobile game I think... 


Anyway!


With this layout I engaged on a new challenge. I wanted my touch inputs to work in an specific way. 
First, let me say that Unity touch inputs are not that great. So for this part I wanted to create a way to detect touches on my GUI textures and associate that touch with that texture so you would not be able to hold that touch, drag it and end up touching and activating a different button. So if I tap the pad and happen slide my finger all the way to the jump button, the  jump button would not react to that touch. I also added to this system a way to detect if my interface button (not the touch itself) was pressed, held or released.

Uff.. it wasn't as simple as I thought at first, but I got it and am so happy to have been able to create my own system for this!

(The silly music is to cover background noises, nothing is said so you can just mute if you like)







Can stop having fun with this things!
Till next time,




[j]

No comments:

Post a Comment