Wow, okey!!! I add that lines and it's everything running okey, thanks Chris!
Would it be easy to add something like a timer in the estadoModelo that if the program is in estadoModelo for more than 3, 4 minutes with no one using it, it resets and goes to the estadoInicio?
Wow, that's amazing Chrisir!
Thanks a lot for everything, that code run perfectly, is just what I need, now I think we are done, I believe the code is almost ready to be handed it.
Thanks a lot for all your help and your patience with me, someone with no much knowledge about processing.
Answers
this must be in draw:
This is the entire code!
upload project, not post code
and also with the changes with new
estado
"end" pleaseSorry, I upload it to mediafire and I post it.
Sent you a message with the full project.
you need to use else if in draw, not only if
you also need this in mousePressed
you needed beginHUD in the new state "end" in draw
I inserted noLights() so the text at the clicked spheres looks better
when you enter this by the way you can have an animation:
Wow, okey!!! I add that lines and it's everything running okey, thanks Chris!
Would it be easy to add something like a timer in the estadoModelo that if the program is in estadoModelo for more than 3, 4 minutes with no one using it, it resets and goes to the estadoInicio?
Yes.
look at lastTimer and mouseIsDown using the search again
I have to go
Bye.
Wow, that's amazing Chrisir! Thanks a lot for everything, that code run perfectly, is just what I need, now I think we are done, I believe the code is almost ready to be handed it.
Thanks a lot for all your help and your patience with me, someone with no much knowledge about processing.
Thanks Chrisir!!!
you are most welcome!
did you figure out what to do with the 2 buttons in the image after all 5 spheres have been clicked?
this is the main timer line:
3000 is 3 seconds... so better say something like
which would be 3 minutes I think
I put 180000, that is 3 minutes in milis!
And for the two buttons I did this
if (millis()-lastTimer > 1000 * 60 *3) {
I did the same but I put the result of that instead of doing the multiplication
this
would belong in mousePressed in section
estado.equals("end")