Mouse down condition not working.

For questions about using Classic.

Post » Wed Jun 03, 2009 3:38 pm

I need help on a condition.
In my game, when the "Ball" button is toggled, you automatically spawn balls when the left mouse button is down. The bug starts when you click the "box" button, and then click the "ball" button again. You can no longer spawn balls while the left mouse button is down. There is also this feature that I put in that if you hold the right mouse button, and your mouse is over a ball, the ball gets deleted. This seems to get disabled too.

Download .cap here:
http://www.mediafire.com/?wljfqkvmmem
B
1
G
3
Posts: 7
Reputation: 839

Post » Wed Jun 03, 2009 4:10 pm

The Mouse and Keyboard object won't receive input after you click on a windows button. I don't know if it's a bug or a limitation of the windows controls. Perhaps a dev can clarify.

Anyways, you can make your own custom buttons with sprites quite easily. I whipped up an example of sprite buttons that are what you need, right HERE. Or, you can check out deadeye's custom UI elements example.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Thu Jun 04, 2009 1:49 am

Ahh, okay. I've worked with using sprites as buttons before.
B
1
G
3
Posts: 7
Reputation: 839

Post » Thu Jun 04, 2009 9:01 am

I think it is a limitation with the way input is received, though it could probably be addressed with some work.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests