Smooth iphone controls?

You must understand the Game Editor concepts, before post here.

Smooth iphone controls?

Postby RippeR7420 » Sun Apr 28, 2013 9:17 pm

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
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Smooth iphone controls?

Postby skydereign » Mon Apr 29, 2013 3:20 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Smooth iphone controls?

Postby knucklecrunchgames » Mon Apr 29, 2013 4:55 pm

maybe mouse button down - follow mouse, mouse button up stops him from moving ???
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Smooth iphone controls?

Postby RippeR7420 » Mon Apr 29, 2013 5:52 pm

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.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Smooth iphone controls?

Postby knucklecrunchgames » Mon Apr 29, 2013 5:54 pm

@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
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Smooth iphone controls?

Postby RippeR7420 » Mon Apr 29, 2013 6:00 pm

Thanks for the suggestion though!
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Smooth iphone controls?

Postby knucklecrunchgames » Mon Apr 29, 2013 7:02 pm

RippeR7420 wrote:Thanks for the suggestion though!


Your welcome, btw downloaded pop the block, aweosme game
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Smooth iphone controls?

Postby RippeR7420 » Mon Apr 29, 2013 7:08 pm

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.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Smooth iphone controls?

Postby knucklecrunchgames » Mon Apr 29, 2013 9:22 pm

I didn't make it in GE though.


what did you make it with? game maker? styncl?
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Smooth iphone controls?

Postby RippeR7420 » Mon Apr 29, 2013 9:35 pm

GameSalad.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: Smooth iphone controls?

Postby knucklecrunchgames » Mon Apr 29, 2013 9:37 pm

RippeR7420 wrote:GameSalad.


cool :)
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron