[r74] platform set maximum speed + controlls

0 favourites
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Hi guys, Im making my game for the rotary competition and i ran into a problem, I need to have a running and sprinting state, simple right? Well no.

    I have a variable called PlayerMaxSpeed, Set to 300 normally. When the keyboard button is triggered to sprint is down then im setting it to 600 then invert the same event and set it back to 300. So if keyboard key is down set it to 600, if its not then set it to 300.

    But when im sprinting with the right arrow key down, and then i press my jump button it works, The player will jump perfectly.

    But if im sprinting with the left arrow key down, and then i press my jump button the player does not jump!!

    I tried soooooo many different ways to get this working but nothing. I tried a boolean for is sprinting, set platform vector y, space is down, left is down, and up is pressed. And many other ways that i cannot even remember but nothings working...

    And i really need this to work? Any one got a work around?

    ps i do not want to share my capx as its my comp entry and its pretty full..

    Ashley any ideas?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Got a .capx made from scratch showing the issue?

  • Ashley

    Can I just PM the one im using right now to you?

  • If you have a lot of events it's very very difficult to tell it's not a mistake in your events instead of a bug in Construct 2. So as far as reporting bugs goes, generally entire projects won't even get looked at, you really should reproduce them in a new project to prove it's a C2 bug and not your events.

  • Ok i'll try reproduce it without my assets ect.

  • Ashley there is not that many events. There is currently 60. Its more my idea/art being stolen or copied that im worried about..

    Can i email it to you?

  • 60 is still too many events. I'm ideally looking for under 10 events. In the past I've spent sometimes several hours picking through a large project only to find it's a mistake in the events, and not a Construct 2 bug. So I really will do anything to avoid debugging large projects, it's a nightmare. You don't need to use any of your artwork, just test sprites is fine.

  • Ok i striped it to the bare essentials. Most of the events were to make things look pretty. Allot of interpolation ect. removed my top secret rotation code <img src="smileys/smiley2.gif" border="0" align="middle" />

    There is just the controls now. I even removed allot of them really.

    Here's the capx - dl.dropbox.com/u/51270524/GameStriped%21%21.capx

  • forgot to add a Ashley <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Ashley, did you have the time to check the capx I Posted above??

    Here it is again: dl.dropbox.com/u/51270524/GameStriped%21%21.capx

  • I don't think it's a Construct 2 bug. It's just that your controls require three keys to be down on the keyboard, and most modern keyboards only reliably detect two keys. It's not a C2 limitation, all software must deal with this.

    p.s. sometimes it can take up to a couple of weeks to deal with bug reports - I just happened to be online/around for this one. I can't always be here for 24hour support!

  • I can't always be here for 24hour support!

    Makes me wonder why? <img src="smileys/smiley36.gif" border="0" align="middle" />

    You're doing a great job!!! So take your time out as well....

  • You have a classic problem of how a keyboard input is read by a computer.

    Change your "Sprint-Key" to "Q" for example, and it will work!

    In my mind, NO BUG

  • Sorry Ashley for bugging you, I just really wanted to use those keys. They felt perfect.

    Weishaupt, I tried changing the key to s and it never worked, But Q will?

    Is there no possible work around so i can use space?

  • I tryed your CAPX and it works with Q

    As far as I can remember from college, keyboards are physicly divided into sectors. Each sector is scanned seperatly and alow only so many keys pressed at the same time to be recognized.

    If you now have more keys you want to be read, then the resolution of the sector allows, you have to move one key to another sector....

    ....this could have changed, but 20 years or so ago, this was how it worked!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)