Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I encountered the bug where the bar and the jump desynced when I was play testing, but I'm fairly new to programing and creating games so I had no idea how to fix it. If you have any idea how to fix  that , after the jam I would love to fix it.

If you're using unity I might be able to offer some advice (I'm a bit new as well, and my knowledge of programming is pretty limited).  If you did use unity, You can use the animator controller, and use a trigger event to trigger the jump function at the end of the bar's countdown

Would this work? Once the bar's value is equal 0,  could I just call the Jump function there and then set the bar's value back to 1 after I call the function?

Probably! as long as you're syncing the bar's sprites/ sprite length  to whatever is counting down your timer

I just use the simple slider that is  implemented in the engine and change its value, I don't use and animation.

Then most likely! I haven't messed around with UI stuff in unity enough to know too much, but that sounds like it should work!

Thank You for being kind, understanding and patient while helping me and giving feedback.

Of course! I hope it all works out well :)