<SOLVED> Issues with picking in binding system

Get help using Construct 2

Post » Fri Aug 12, 2016 11:35 am

I made a system for input in my actual project, but I think I still have some misunderstandings with families because it isn't working as intended, and seems risky to leave it as it is.

Binded controls for several players (only 2p set atm) are stored on an array, then there are a lot of "on keycode pressed" that call the corresponding function when said buttons are pressed. That function simply sets the corresponding instance of a family to true/false.

The booleans are being set correctly, but the "is X input boolean" events doesn't seem to be doing what they should. That is, when lots of keys for different players are pressed at the same time, sometimes one does not do anything at all. I thought it would be fixed adding a "for each <familyName>", but nope! If you look closely, when pressing Up arrow (player 2) and W (player 1) at the same time, only one of those spawn three particles.

I would greatly appreciate any help. If you see that I did something stupid like placing an useless loop, or a way simpler way to achieve this system, I would love to hear it!

If you don't understand something in the .capx, please reply and I will explain it further. I just want to end this family nightmare!

Capx (click on keys and press another to bind it): https://www.dropbox.com/sh/a397h7mbwj3k ... gTDra?dl=0
Last edited by CloveltOc on Fri Aug 12, 2016 4:59 pm, edited 4 times in total.
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Fri Aug 12, 2016 11:40 am

I think you may be hitting hardware limits here. Most keyboards are only designed to accept the buttons being pressed simultaneously under a certain limit.

A cheap keyboard may only allow 3 at once, where a gaming keyboard may allow 8 or 10... if you have multiple people using the same keyboard (local multiplayer) then that could be affecting your problem here.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Aug 12, 2016 11:43 am

I don't think so though, I've played lots of local multiplayer games on this machine and they worked perfectly! Still, the second issue made me suspect that this problem wasn't the hardwares' fault.
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Fri Aug 12, 2016 11:53 am

Getting a 404 error when trying to download your capx

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Aug 12, 2016 11:57 am

Reuploaded
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Fri Aug 12, 2016 12:49 pm

You have plugins installed that I don't use :(

Can you remove the plugin or does it affect what your issue is? It usually best to provide a plugin-free capx for troubleshooting or a minimal recreation of the issue if removing plugins isn't really possible.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Aug 12, 2016 1:57 pm

Sorry! Litetween is quite a common plugin though... (reuploaded)
Last edited by CloveltOc on Fri Aug 12, 2016 5:00 pm, edited 2 times in total.
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Fri Aug 12, 2016 3:02 pm

Nevermind! fixed it. Had an "else" that wasn't affected by the "for each". Can't figure out how to edit the post title to <solved>, so I'll probably delete it later overall. Thanks, @SoldjahBoy though!

Edit: You apparently cannot delete topics either?
Edit2: Figured out how to edit topic titles
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Sat Aug 13, 2016 3:30 am

Glad you fixed it.

Yes LiteTween is a common plugin, but that doesn't mean everyone uses it or wants it installed into their C2. I already have a lot of plugins, and I don't like having to add more that I will never use :(

All sorted though anyway!

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474


Return to How do I....?

Who is online

Users browsing this forum: datiel12, tarek2 and 57 guests