Alrighty, I am (officially) back with a few question!!! *insert fanfare here*
Ok, so, there is a certain way that I want to handle control here. I want it to be able to be played on a Gamepad and I am having a few issuses on how Buttons are detected.
Basically, I want the game to be able to determine whether a certain button is being pressed or not being pressed. (Similar to VC#'s KeyUp, KeyDown)
As I noticed that the basic functions can only tell when a key is just pressed once, I decided to use the dreaded helpful scripting to accomplish this. So far: i came up with this code:
Dim Btn1, Btn2, Btn3, Btn4
Dim DirU, DirD, DirL, DirR
Sub Player_OnBeforeMoveSprite()
ProjectObj.GamePlayer.PollJoystick 0
If ProjectObj.GamePlayer.JoyButton1 = True Then
Btn1 = True
ProjectObj.GamePlayer.InvQuantityOwned(0) = 2
Else
Btn1 = False
ProjectObj.GamePlayer.InvQuantityOwned(0) = 1
End If
End Sub
And so far, as many of you probably guessed, nothing showed up. Am I doing this right, or is there a better way of doing this?