Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pro tip: I assume your bug with the generation is caused by having an integer and a float where the 0.1 is the float and when you add 0.1 to an integer, it just discards that because integers are whole numbers. I would usually have the number be a float, or if it must be an integer i'd make a new variable to carry over the sub-integer values. This carry technique is very common and used in every single computing chip nowadays too. The idea is simple, check if your carry float is 1 or greater, then separate the whole number and add it to the integer while keeping only the remaining non-whole number. This can be done with a modulo of 1.

Yes, thanks :), in our new build I've already solved it that way actually, making a variable to carry decimals. At first we didn't have decimal gen so we didn't have this bug but we added it the last day and thats why we couldn't solve it in time :(

The game is finally working if you want to try it now!