Shop OBEX P1 Docs P2 Docs Learn Events
Basic stamp — Parallax Forums

Basic stamp

CreativeCreative Posts: 11
edited 2005-10-21 14:54 in BASIC Stamp
I·have 9 led and 9 push button switches for·my game. i light up 4 led using FOR LOOP. Then the player will memorize the random lighting sequence and input the respective sequence by pressing the switches. However, i try to use the 'for loop' for the user to key in 4 times but it only works 4 times when i press and hold on to the switches. Whereas what i want is the user to press and release and store it using an array.

Comments

  • ejdarlingejdarling Posts: 24
    edited 2005-10-21 11:07
    It sounds like a change of state in your program logic, which you made an assumption that the machine is not smart enough to make. Usually when I have this type of problem, I go back thru and document the lines, straighten up the indentation and make things more easily readable, and during that process I sometimes realize what is needed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    thanks for your time,· Eric
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-10-21 14:54
    Without posting your code it would be extremely difficult to narrow this problem down.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.