LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

continous increasing using a event case

Hello,
 
I'm making a game space invaders in labview, but i've a problem with it. I have make my shooter already, I can move(step by step) and shoot with it ...
But my problem is,  I wan't to move continously. When I press the right key, it should keep on going ... now it stops after one step ...
How can I do this ??
 
 
 
 
0 Kudos
Message 1 of 3
(2,682 Views)

Use the "Key Repeat" event to detect this.  Or, run a seperate loop that watches key buttons and sends the values over User Events.  Then, register the User Events and hook up the refnum to the dynamic terminal on the event case.  From there, you can watch those values.

7J1L1M

0 Kudos
Message 2 of 3
(2,673 Views)

I just thought of something else.  Watch for Key Down and move your space thing until a Key Up event occurs.  That should be much easier than what I suggested earlier.

7J1L1M

0 Kudos
Message 3 of 3
(2,671 Views)