Mechanics for my game not working

Hi,
I’m making a banking game, and I have a section where you empty your money into a safe. The mechanics I have are a checker that runs when you press the button, which checks if you have any cash. If you do, then it runs the check again, takes one cash away from you and increments a counter, which updates a property that I’m using for scoring. I’ve checked over it and all my channels seem to be in order, and theoretically it should work, but when I play, either it only adds 1 to the property when I look at the leaderboard even though I deposited 5 cash, or it only deposits 2 cash at a time and when I’ve deposited it all, it shows a ridiculously high number on the leaderboard for some random reason. I don’t know whether this is just a glitch or an actual fault (I’ve got the sentry glitch where sentries don’t appear at the moment, so it stands to reason that it’s just a GKC buggy moment), but I’m pretty sure it’s not a glitch. Can someone help?
A picture of my setup:
image
(The property is elsewhere in the map.)

Button settings:

Checker settings:


Item granter settings:

Counter settings:



Property settings:

(All settings not shown are default for each device.)

Thanks!

1 Like

are the devices connected with wires?

No, they’re all connected with channels. I haven’t used any wires in the game, plus you have to use channels to do the checker repeat thing so I kinda have to use channels.

I think that might be the problem, I don’t use channels but When I use wires to connect devices it normally works

I always use channels, and it always works. I’ve checked my channels and they’re perfectly fine - it’s not the channels that are the problem.

Than I don’t know what’s happening, I don’t use channels so… yeah.

I’ve playtested this part 3 times now. The first time, it only added 1 to the property, but the second and third times, I had to put my cash in bit by bit, and for some random reason it added 302 to the property even though I only deposited 5 cash.

Edit: nevermind, what I found was intended.

Edit edit: if you change this to equal to or greater than, does that fix it?

1 Like

That helped a bit, but it’s still glitching slightly - it doesn’t do the weird thing where it adds 302 to the score, but it’s still only adding 3 instead of 5 after I changed it to ‘greater than 0’. That helped though!

Errors

  • The loop runs on when the player’s cash is equal to 1, not less than 1.

I think that’s it.

Do you mean I should run it when it’s equal to it, or when it’s less than it? Sorry, I’m just a bit confused… I have tinkered with that part of the mechanism though, and it seems to have improved it - it takes all the money at once now, and doesn’t add a ridiculous amount to the property any more, it just only adds half for some reason.

Set the check to less than 1, so that if the check fails, the loop will stop.

Also, I think you need a delay as well. The loop might be running too fast and glitching out.

1 Like

Basically, if it works then I add to the property and take 1 cash away from the player. I don’t want the loop to stop if there’s more than one, I want it to continue because then I can check if they have any more cash to put in the safe.

I hadn’t thought of that! I’ll try adding one in.

@Kosm0-o, I tried doing that but it didn’t really help - it still only adds half the money to the property. Do you have any other ideas?

I barley even use any channels. Because I’m not good at making maps tbh.

As I’ve said, it’s not the channels that are the problem.

oops, yeah that;s what I meant. I was thinking of you using the check fails channel for some reason lol.

how did you implement the delay?