Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / float GetJoystickX() question

Author
Message
cryptojoe
12
Years of Service
User Offline
Joined: 27th Sep 2012
Location: Michigan U.S.A
Posted: 1st Jan 2013 20:30
I want to use the command float GetJoystickX() but don't know what parameters to give it... and yes I did check the App Game Kit Documentation Home Page...

I want to use it like this, Dirx# = float GetJoystickX()
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 1st Jan 2013 20:39
This should work.

Dirx#=getjoystickx()

Just get rid of the float bit.

TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 1st Jan 2013 20:40
GetJoystickX() and GetJoystickY() both return a float value between -1 and 1

Correct syntax:

Dirx# = GetJoystickX()
cryptojoe
12
Years of Service
User Offline
Joined: 27th Sep 2012
Location: Michigan U.S.A
Posted: 1st Jan 2013 21:03
that works just fine, thanks Dvader

Login to post a reply

Server time is: 2024-11-24 06:26:57
Your offset time is: 2024-11-24 06:26:57