chrisknepper / Fractionauts

An educational game for the XOPC that teaches fraction operations with rockets.
Other
8 stars 7 forks source link

Clicking on a container should select it only once #46

Closed valeatory closed 10 years ago

valeatory commented 10 years ago

Currently, when you click on a container, there is no restriction on how many times the click triggers. So, if update runs more than once while you are clicking, you can select, deselect, and select again multiple times. This results in several clicks being immediately undone. In order to prevent this, I would usually use a 'last_mouse1down' variable to hold whether the mouse button was also pressed last update, but if there is a nice pythony way to do this already, it would be better.

valeatory commented 10 years ago

closed via https://github.com/chrisknepper/xo-fractions-game/commit/8cd76f3c93793913ca0520daaf5af4c4aaac886e