LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Game Application

Solved!
Go to solution

Hello everyone

I 'm Labview begiiner, I have made simple game, but I'm confused to develop it. I want to make additional programs when score: 0-10  with a while loop speed of 3000 miliseconds, when a score of 11-20  with a while loop speed of 1500 miliseconds, and when a score of 21-30  with a while loop speed of 500 milliseconds.

 

Thanks.

0 Kudos
Message 1 of 12
(3,835 Views)

I hope anyone help me.

0 Kudos
Message 2 of 12
(3,830 Views)
Solution
Accepted by topic author michaelkeane24

Use a case structure in your code:

insert this.png

Also, use data flow instead of a sequence, and use shift registers instead of local variables.

"If you weren't supposed to push it, it wouldn't be a button."
Message 3 of 12
(3,786 Views)

Thank you SIr, but I still don't understand about data flow and shift register that used in this program, what do I get best tutorial about it?

0 Kudos
Message 4 of 12
(3,776 Views)

@michaelkeane24 wrote:

Hello everyone

I 'm Labview begiiner, I have made simple game, but I'm confused to develop it. I want to make additional programs when score: 0-10  with a while loop speed of 3000 miliseconds, when a score of 11-20  with a while loop speed of 1500 miliseconds, and when a score of 21-30  with a while loop speed of 500 milliseconds..


  • I think you have significantly more problems, because most of the code seems faulty. Doing bitwise operations in orange wires is a big nono!
  • Your only controls are the baloons, but the two states look identical.
  • An "equal false" is just a "not", and you don't even need it if you would swap the inputs of the select node.
  • Can you explain in simple terms how the game works? How does the user interact with it and what is supposed to happen?
  • ...

 

0 Kudos
Message 5 of 12
(3,768 Views)

when string indicator give name of color, if you click right color, you get  1, but if you click wrong color, you get -1, it works fine in my pc.

0 Kudos
Message 6 of 12
(3,766 Views)

But I don't understand when I try to add this algorithm to my program.

0 Kudos
Message 7 of 12
(3,765 Views)

 I want to make additional programs when score: 0-10  with a while loop speed of 3000 miliseconds, when a score of 11-20  with a while loop speed of 1500 miliseconds, and when a score of 21-30  with a while loop speed of 500 milliseconds.

0 Kudos
Message 8 of 12
(3,759 Views)
Solution
Accepted by topic author michaelkeane24

@michaelkeane24 wrote:

 I want to make additional programs when score: 0-10  with a while loop speed of 3000 miliseconds, when a score of 11-20  with a while loop speed of 1500 miliseconds, and when a score of 21-30  with a while loop speed of 500 milliseconds.


Something like that? try it!

 

altenbach_0-1587405584961.png

 

0 Kudos
Message 9 of 12
(3,752 Views)
Solution
Accepted by topic author michaelkeane24

Or slightly cuter. Same difference. (only works for exactly three stages, of course)

 

altenbach_0-1587406194209.png

 

0 Kudos
Message 10 of 12
(3,749 Views)