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.
rem insert your routine that would randomly place letters
rem all over the screen
rem advance the sequence to test by 1
rem a loop to test if the current letter is matched
rem this would be a routine to move the target around
rem test the collision here against the trget and see which letter
rem by using the target number and the number zero, we can
rem return the object number that is being collided with.
rem if it's not our object in the current sequence - i.e.
rem if it's not the next letter in order, don't do anything.
rem if it is the correct letter break out of the loop and
rem advance the sequence
rem test the hittingobject against the current letter in sequence
if hittingobject = currentletter
rem we've escaped the loop because we collided with the correct letter
rem reset matched to zero and increment to the next letter
rem we want to test if the current letter is beyond the range of letter objects
if currentletter > maxletters
rem do something
Login to post a reply