Skip to main content

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

Fire button not working properly on my shooter game

A topic by Retropixie created Jul 19, 2023 Views: 124
Viewing posts 1 to 1

I've uploaded a game made with Unity 2018.2.10f1. On the executable, all works fine, but on the web version on itch.io, i can validate navigation in the menus of the game with the spacebar (keyboard) and the A button (Xbox Controller), but when the game starts, none of those works (spacebar and A are mapped to "fire", but i can only move my character, not shoot.

The fire button is well defined in the input windows, it's set to correspond to spacebar on the keyboard and A button on the Gamepad (well, as i said, it works well on the executable). On the script that manages shooting, it starts with this condition:

if (Input.GetButtonDown("Fire1") && fireReady == true && fireOn == false)

Have anyone an idea of why it doesn't work ?

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.