Simulate car movement not working

0 favourites
  • 3 posts
From the Asset Store
Basketball Practice is HTML5 game written in construct 2 and 3 engine that simulates hooping.
  • Hi everyone

    I've looked at a few tutorials for this and I'm annoyed I'm stumped at something seemingly so simple.

    I have a blank test project with a sprite and car controls and nothing else. I added a Keyboard object, and in the event sheet added:

    Keyboard > W is down > Sprite > Simulate Car pressing Accelerate

    but this unfortunately doesn't work. Keyboard input in general does (pressing a key to destroy object works fine, for example) and arrow keys move the Sprite just fine, it just doesn't want to simulate car control with WASD.

    I can also set space to "Stop" the car movement and that also works (move car with up arrow, press Space to stop the car), it just seems like only the "Simulate Control" options don't work.

    None of the guides I looked at mentioned anything else (although they were somewhat outdated), am I missing a step? I used Construct 2 a while back and I remember this being fairly trivial to set up.

    Thanks

  • All the conditions are in the same event block, so it will only be true when you hold all those keys down, in which case it will run all the actions and similate all controls at once. You should split those out in to separate event blocks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • All the conditions are in the same event block, so it will only be true when you hold all those keys down, in which case it will run all the actions and similate all controls at once. You should split those out in to separate event blocks.

    Well, I knew it would be something stupid on my part.

    Many thanks!

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