keyPressing . newbie doubt
Answered
- Need more info
- Answered
- Working on it
in
Programming Questions
•
3 years ago
Hi,
I'm trying to modify an example given by Reas in Programming Handbook (sketch 50-09 / 50-10). It's a series of particles that bounce at screen bounders with physics properties.
I achieved to add one more array or single particle to the stage when I key-Press, but... I have to keep the key down all the time to see the second particle bounce altogether with the previous. So, my question is... what's the expression for extending the action permanently (I mean, after you release the key). I tried all the conditionals but I still don't figure out what the logic is. (To make a 'key touch' let me have the key free for shooting a third array and so on)
Thanks very much in advanced. Regards.
Marcelo
I'm trying to modify an example given by Reas in Programming Handbook (sketch 50-09 / 50-10). It's a series of particles that bounce at screen bounders with physics properties.
I achieved to add one more array or single particle to the stage when I key-Press, but... I have to keep the key down all the time to see the second particle bounce altogether with the previous. So, my question is... what's the expression for extending the action permanently (I mean, after you release the key). I tried all the conditionals but I still don't figure out what the logic is. (To make a 'key touch' let me have the key free for shooting a third array and so on)
Thanks very much in advanced. Regards.
Marcelo
1