Skip to main content

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

Ey thanks. I realized in the original it's literally a different song because they couldn't afford to do music blending and stuff on the dreamcast. sorry about the cpu usage. Essentially I have an array that stores the homing attackable objects near you and that object should get garbage collected because it isn't a field. This is what happens in the windows build. However, in the web gl build, unity optimizes garbage collection so it doesn't happen in the Update function(creating and garbage collecting arrays every frame isn't super efficient). This causes a null reference exception when sonic jumps when there are no enemies around him and there previously were. I think I can fix this by making the array a field and wiping it at the end of every update. Let me check.

Nice, thanks anyway