Hi guys. I am experiencing weird behaviour with the Button object...
Here is a statement I constructed:
if Button1 on clicked and System global variable lastText == 2 then lastText = 3.
another statement I constructed is
if Button1 on clicked and System global variable lastText == 3 then Stop all audio and Play MyAudioTrack not looping at volume 0dB.
The problem is that When I press the Button and lastText is equal to 2. Once it has set last text is equal to 3 it detects that I have pressed the button for lastText is equal to 3 aswell and the audio plays in either case :S.
This to me is strange behaviour as a programmer. What is the way around it?