Page 1 of 1

Smooth iphone controls?

PostPosted: Sun Apr 28, 2013 9:17 pm
by RippeR7420
Hey everybody, I have a question about smooth iphone controls.

In my game, When I want my player to move left or move right, I have to pick up my finger and press down on the other direction.
Is there a way we can move just by sliding your finger from the left button to the right button?

Now I've tried "Mouse Enter" and "Mouse Leave", But the problem is I have my character set up to jump also. And when I press down
on the jump button, It triggers the "Mouse Leave" function for the "Right Button" thus making my character stop moving on the x axis,
and only allows him to jump on the y axis.

Any help would be Greatly appreciated!


-RippeR

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 3:20 am
by skydereign
There isn't a good solution to this. The problem is gE doesn't really support multitouch. I created a workaround once, but lost the file and can't remember the method that I used to bypass it. Multitouch on android has been implemented which would make it more or less just work. But for now, the best way to go about this is to come up with a movement scheme that only requires one touch.

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 4:55 pm
by knucklecrunchgames
maybe mouse button down - follow mouse, mouse button up stops him from moving ???

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 5:52 pm
by RippeR7420
Ahh. Yeah it's not a huge deal, but it would make gameplay have more of a constant flow. Thanks though Skydereign.

@knucklecrunchgames the problem is in the "mouse leave" event. So even if the button followed as soon as you release
The jump button it will trigger a different state, and make the player stop moving. Or one would think at least.

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 5:54 pm
by knucklecrunchgames
@knucklecrunchgames the problem is in the "mouse leave" event. So even if the button followed as soon as you release
The jump button it will trigger a different state, and make the player stop moving. Or one would think at least.


alright

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 6:00 pm
by RippeR7420
Thanks for the suggestion though!

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 7:02 pm
by knucklecrunchgames
RippeR7420 wrote:Thanks for the suggestion though!


Your welcome, btw downloaded pop the block, aweosme game

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 7:08 pm
by RippeR7420
Thanks... :) I didn't make it in GE though.

And Sky, I think I may have figured it out. if I get it working properly I will post the .ged so you can check it out.

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 9:22 pm
by knucklecrunchgames
I didn't make it in GE though.


what did you make it with? game maker? styncl?

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 9:35 pm
by RippeR7420
GameSalad.

Re: Smooth iphone controls?

PostPosted: Mon Apr 29, 2013 9:37 pm
by knucklecrunchgames
RippeR7420 wrote:GameSalad.


cool :)