So i am stuck at small step of building my game in which i have multiple pickups which stays for duration and after a delay those pickup become invalid the delay is based on a variable which is float and the value in variable comes from main menu if a player upgrade the particular pickup using coin the delay will increase the initial delay is 10 second everything is working fine then i messed it up by adding a small logic like if there is pickup already picked and inital time is 10 second out of which 5 second is gone and 5 second left so if 5 second left and i pciked a new pickup of same category then the new pickup time which is 10 second and old pickup time which is 5 second should be add up but not exceeds 10 second which is total it can be diffrent based on what player chooses i somehow manage to do this logic but first 10 second took 10 seconds only to drain and next pickup take first pickup leftover time which is 5 seconds and drain whole 10 seconds in 5 seconds which is unusual if anybody here can guide me or help me or can tell me other way to do it will be really appreciable
I tried to read this, like, 3 times and all I got was a headache
Any chances you could put some punctuation in there so it’s easier to understand how it’s supposed to work? Or, or, ideally turn it into bullet points. This way you can start working on it one thing at a time yourself.
- the game board is full of floating pickups that bob up & down, all lined up
- the player can collect them by running into them, they then disappear and we get points
- the pickups have a limited lifespan; if not collect fast enough, they disappear
- the player can collect a special pickup that resets / extends the lifespawn of all other pickups
- the pickup lifespan can never exceed X seconds, though
- what do?
Something like that. It wouldn’t hurt if you attached a sketch / drawing / YT link in case the “like subway surfer” bit is vital to this mechanics.
Note that this is a thing:
Make it obvious and as clear as possible. You have that thing of yours working in your head. We do not.
1 Like
I appreciate your efforts and sorry next time i will take care but i fixed the problem which i was facing and thanks for answering
1 Like