- Home /
Question by
Gayala3 · Nov 25, 2019 at 05:04 AM ·
2dbuttonshootinggetkeydowngetbuttondown
How can I have multiple shoot buttons?
I want to have multiple shoot buttons (i.e. Space and left click) have a simple script that will do that but then the player can fire twice. When one is pressed I want the other one to be disabled.
fire-button.png
(42.2 kB)
Comment
Best Answer
Answer by zactanpeterson · Nov 25, 2019 at 05:08 AM
You could put both in one if statement: If(input.getkeydown("space") || input.getbuttondown("Fire1"))
Thank You I am Currently working on my first game and kinda new to this so I appreciate the help