Threshold problems
in
Programming Questions
•
2 years ago
Hi all,
I am stuck on a concept that in my head seems simple, but I just cannot get it to work. I am a bit of a newbie so please bear with me. Please could anybody help or point me in the direction of a tutorial that may help (I have looked). This is a simplified version, for ease of explanation, of what I want to do.
I want a function to trigger when a value goes above a certain threshold. Say an ellipse moving from top to bottom.
The problem I am having is that when this value then goes below the set threshold, the ellipse is removed from the screen.
What I want to happen, is every time the value goes above the threshold, a new instance of the ellipse is created, resulting in multiple ellipses moving down the screen, each one continuing on its own journey after being created.
Many thanks in advance of any possible help.
1