Here's the example, first off: http://crossedshadow...ick_Example.zip (you need to extract it to get the .gmz)
Example Screenshot:

I hope this helps out some people. It'd be nice to play some games on my Android that have proper analog controls. Well, now there's no excuse for you guys!
PS. This can be implemented to have up to 5 analog sticks, if you really needed. Because I included multi-touch functions for everything. The thing where it detects if you're still holding your finger down and you're outside the analog dead-zone even works with multiple analog sticks, as well. Just be careful with placement and check the create event to make sure you're putting the sticks where you really want them! This can even be configured a bit to where the analog stick moves with the finger, if moving to far out, to adjust to the player's play-style. I know the UnReal engine tried something with that, awhile back, so it might be fun to play with. Get creative!
Be sure to post any errors or any mistakes in my code or example in this thread.. Or any way to be more efficient!
Edit: Alright, I removed the code from this post. You couldn't copy/paste it anyways because of the way the forum formatted things, it just messed stuff up. I have the link posted above still for you to view. Another reason for me to remove it was because the code is a bit more complicated now in ordering, because I made the analog stick smooth for moving on the x and y axis around the room. I hope you enjoy!
I made it so that the math for the analog stick is now in the draw event, right next to where it actually draws the stick. I did this because it makes it much smoother when moving around the room.
Edited by cotycrg, 11 October 2012 - 04:20 PM.











