Author Topic: Thumb stick.. need help/advice.  (Read 1771 times)

AlmostBlind

  • Guest
Thumb stick.. need help/advice.
« on: May 03, 2012, 03:00:29 am »
Hello everyone!

i was just curious.. instead of using arrows you click on the game i want a thumb stick. so i will be able to move backwwards and forward but be able to look up with the stick as well..

is it hard to make a thumb stick for movement ?

and r u able to to movement on the stick forward and backwards but still if u use the stick upwards it just look upwards, not walk.

tell me plz if this is possible and if it is hard or easy.

i blieve the arrows is much easier?

thanks in advance

sincerly Marcus
« Last Edit: May 03, 2012, 04:54:54 am by AlmostBlind »

rjanes

  • Guest
Re: Thumb stick.. need help/advice.
« Reply #1 on: May 03, 2012, 10:56:10 am »
You're asking a loaded question.

What you're asking for is doable, you could create one large touch area that would be the entire range of your thumbstick, flag the event==1 (down) as a boolean = true, and make event==3 boolean = false (this flag will let the movement event know if we still have the thumbstick down or not).  On the event==2, you'd simply compare where your current x,y touched positions are, if they are Left>Right, make your thumbstick appear left or right, and if the x,y position is north/south then call your custom look up or look down function.

That's the best answer I can give without knowing how your player movement works, how the camera works etc.

AlmostBlind

  • Guest
Re: Thumb stick.. need help/advice.
« Reply #2 on: May 04, 2012, 07:27:00 am »
cool :) then i know it works!

well.. i haven't started to much..

just scetching it all up

DeadSn0wMan

  • Guest
Re: Thumb stick.. need help/advice.
« Reply #3 on: June 05, 2012, 09:02:58 am »
That will be a pain in the ass to code..... ;D