Hello, look, I'm quite clumsy when it comes to development (i'm creating my first indie game), but the truth is that it's fun to move forward and solve problems. But I have one that I'm not sure where it can go... I have some events to do a double jump (with PlatformMovementObject), which work with the keyboard (using Control-X), and now I'm trying to make it work with the gamepad (I'm using the XboxGamepad extension) but it doesn't seem to work...
Please login to see this attachment.
What I show in the screenshot... the "Jump" event when pressing the B button, if the "doublejump" variable is equal to 0, and the player is on the ground... then I tell the player to jump, and that the sprite changes the "doublejump" variable to 1
Then in the second "Double Jump" event, when pressing the B button, if the "doublejump" variable is less than 2, and the player is not on the ground... then the player jumps again and I change the variable "doublejump" to 2
Finally, the reset, when the player is on the ground, his "doublejump" variable is 0.
As I say, with a keyboard, it works for me, I attach another screenshot in case someone can see what happens better.
Please login to see this attachment.
By the way, I'm using the XboxGamepad extension, it's the only one I've managed to get to grips with, but does it work? I have read that some games were causing problems with the extension after a Windows or DX update... I have seen that they recommend SDL Joystick (or is it now SDL Object?) but I couldn't make my character move xD
Thanks in advance.
Edit: By the way, since I'm asking about this... another problem that I couldn't solve. The gamepad part, my characters move if I use the D-pad, but it seems that if I tell them to use the stick they don't move, any ideas? Do I have to try something different from the stick to the d-pad in the extension for it to work?