Mouse Click Jump Problem

Talk about making games.

Mouse Click Jump Problem

Postby Rebenely » Fri Nov 08, 2013 12:44 pm

Why can my character (Rob) still jump multiple times when the button actor is clicked multiple times? I have another version of this with the up keyboard key set for Rob to jump and it works properly (he doesn't multijump). I tried to use mouse clicks because I've read that it has to be mouse event for it to work on android devices.
Attachments
Mclick.zip
(39.92 KiB) Downloaded 95 times
User avatar
Rebenely
 
Posts: 16
Joined: Fri Apr 05, 2013 1:13 pm
Score: 1 Give a positive score

Re: Mouse Click Jump Problem

Postby schnellboot » Fri Nov 08, 2013 3:43 pm

the problem is at Button -> Mouse Button Up (Left)

Code: Select all
if(Rob.yvelocity<0)
{
Rob.yvelocity=-10;
}


as you can see there is no restriction with "jump"
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest