SyntaxBomb - Indie Coders

Languages & Coding => Blitz Code Archives => User Input => Topic started by: BlitzBot on June 29, 2017, 00:28:40

Title: [bb] JoyU() throttle 0-1 converter by Chroma [ 1+ years ago ]
Post by: BlitzBot on June 29, 2017, 00:28:40
Title : JoyU() throttle 0-1 converter
Author : Chroma
Posted : 1+ years ago

Description : This is more suited to a flight sim since obviously there's no reverse (reverse thrusters and just take the output and multiply by a negative number).

Code :
Code (blitzbasic) Select
baseThrust = (JoyU()-1) * -0.5

Comments :


Damien Sturdy(Posted 1+ years ago)

 These lil functions can be quite useful... This one can be done many ways. Like
BaseThrust=(JoyU()*.5)+.5