#Reward currency for playtime not working.

1 messages · Page 1 of 1 (latest)

dull field
#

Hey! I am currently trying to make a system which rewards currency after a delay.

The image attached is what I tried to do. However, instead of rewarding me 5 “Coins” every 10 seconds it was rewarding me with just under a thousand every 10 seconds.

How would I go about fixing this? Thanks in advance for your help!

finite lagoon
#

@dull field try this: change the event reciver update 30 Herts ti smth else like player joined room and after the subtitle conect it the run again?

#

Idk but atleast am trying

wet sky
#

this triggers at 30hz with an initial delay of 10 seconds

dull field
wet sky
#

one way is to add delta time to a variable and then checking if its over 10, then subtracting 10 from it and awarding the reward

dull field
#

ill have a tinker

obsidian summit
#

wire after delay to cancel

#

and wire cancel

#

to award currency

dull field
night venture
#

I see the issue here, on your delay chip, you’ll want to wire the “After Delay” execution to the cancel input. This is so it’ll cancel all other inputs into the delay and start a new delay countdown thing the next frame. Then you’ll want to wire the “Cancel” execution output into your award currency chip as it’ll only award the currency every 10 seconds other than 30 times a second 10 seconds after loading the room
[The image might be more useful than what I just said there, I don’t do this often so I don’t know if I’m any good at explaining things at all]

#

If only I saw the replies before typing that all out

#

If it’s working though then you should probably mark the post as answered