adjusting bullets velocity with keypad

0 favourites
  • 2 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • how would i go about adjusting a projectiles velocity by pressing a key

    quick example

    click a

    add 1 to bullets velocity

    minimum 200 maximum 400

    in my game im trying to set it up so you have to determine the angle and velocity of a sniper rifle in order to reach your target im fairly new to this program and have little skills on mathmatic equations ive searched all examples i just cant seem to find any forum post with the anser to my question PLEASE HELP

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use the keyboard object, or touch object if you have onscreen keys. With those you can change what get's plugged into your formula by assigning the number pushed to a variable and using that variable in your formula. For math on doing that you may need to either check with google or Wikipedia for equations for calculating bullet velocity, drop off, etc... or hopefully one of the folks here that may have done this before may have an idea.

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