PrintC ( \\\"GetVirtualButtonState = \\\" )
Print ( GetVirtualButtonState (2) )
if ( GetVirtualButtonState( 2 ) = 1 )
PlaySprite( 1,15 ) //shoot
Print ( \\\"Button Held\\\" )
endif
Upon loading, the code prints GetVirtualButtonState = 0
When holding down the Virtual Button the state changes to 1 and prints \\\"Button Held\\\" but the animation does not play.
Releasing the Virtual Button the code prints GetVirtualButtonState = 0 The \\\"Button Held\\\" goes away and then the animation plays.
I assumed that if GetVirtualButtonState = 1 it should display \\\"Button Held\\\" and play the animation or am I missing something.
I didn\\\'t find anything in the doc\\\'s or the forum about this.
Any Thoughts?
Shall we play a game?” - Joshua