Skip to main content

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

I'm pretty sure i did something like this in the code:

if(Input.GetAxis("Mouse ScrollWheel") > 0) block++;
if(Input.GetAxis("Mouse ScrollWheel") < 0) block--;

if(block < 0) block = maxBlock;

if(block > maxBlock) block = 0;


I looked for an input axis rather than a Input.GetKeyDown, so just replace this section with something like that.

dude i am so dumb, i tried replacing the mouse scroll wheel with buttons that i created and didn't realise it said getaxis instead of getkeydown... bro

(2 edits)

Edit: commenting out the save feature on save and quit gets the button to work, is there anyway to get the save feature working on phones?

Hey, Sorry to bother you again. I'm not sure you know the cause of this problem (probably not) but the generate new world and save and quit buttons work perfectly in the editor, but when I build it on my phone those buttons don't do anything. Is there anything like PC specific thats in the code for those buttons?

Yeah. you'd have to make sure the button components are accepting touch and not just mouse input. I'm pretty sure i made my own button scripts rather than using unity's default ones. Look into that script and be sure its looking for touch as well.