Another python question

Hey again…

I’ve got the fillowing problem:
I want…

1. If a key is pressed and hold, a property increases but not bigger then the value of 100… (I got that)

Keypress — expression ----- property
Space ------- prop1 < 100 ------ prop1 = prop1 + 1

Did it with lodge bricks… no problem.

2. When the key is released, another property gets the value of the property we were dealing with…

own[“prop1”] = own[“prop2”]

3. The value of prop1 returns to 0.

The problem is that I don’t know how to make the: “key release” part.

Any ideas?

Thanks for reading :slight_smile:

make another keypress sensor, invert it (the inv button) and link it to the own[“prop1”] = own[“prop2”] actuator.

thanks man :slight_smile: