News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

weapon switching with a joystick

Started by awergh, 11:56, 29 October 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

awergh

This might be more a game question then a programming question but I am mostly interested in the implementation.
I'm currently working on a game (times almost up  :o ) and I want to be able to switch weapons while using a one button joystick.
I had considered making the player go somewhere (the weapon switch machine) to change weapons but the backtracking seems like it would be a problem.


I could choose to reach over the keyboard to change weapon but I gather some people don't like doing this.
I'm sure some games used the button and then a direction together but I don't really want to do that.


Would holding down the button until you got the weapon you wanted and release to shoot be effective or would this be annoying?

AMSDOS

Quote from: awergh on 11:56, 29 October 18
This might be more a game question then a programming question but I am mostly interested in the implementation.
I'm currently working on a game (times almost up  :o ) and I want to be able to switch weapons while using a one button joystick.
I had considered making the player go somewhere (the weapon switch machine) to change weapons but the backtracking seems like it would be a problem.


I could choose to reach over the keyboard to change weapon but I gather some people don't like doing this.
I'm sure some games used the button and then a direction together but I don't really want to do that.


Would holding down the button until you got the weapon you wanted and release to shoot be effective or would this be annoying?


I don't recall having a problem with it in Zynaps.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

GUNHED

Quote from: AMSDOS on 09:39, 30 October 18

I don't recall having a problem with it in Zynaps.


Was a pain. One couldn't fire.


Better: Use a 2 button joystick. Button 2 changes the weapon.

http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

andycadley


A one button solution is always going to be a compromise (there's a reason modern controllers have so many buttons) - what works best will tend to depend on the type of game. For a frantic shooter having to hold down a button can be awkward because you can't shoot in the mean time. Similarly fire and a direction can be a pain if you end up switching weapons when you mean to move.


Using a keyboard key can be irritating on a real machine, but if it can be mapped to fire 2 as well it isn't so bad. And emulators may be able to map additional controller buttons to other keys. Or you can follow some of the GX conversions and map extra controls onto joystick 2.


Best strategy is to playtest options till you find something that works best for your game.

awergh

As I already have rebindable controls I have decided I will let the user choose what they want.
If they want the same key for shoot and change weapon it will cycle through them and they will have to manage any additional difficulty.

reidrac

In Dawn of Kernel you can use down, down to change weapon and down + fire to use the secondary weapon (that is used occasionally).

I didn't have many complaints, but it probably works better with a gamepad than a joystick.

Two button joysticks are great, but not that common in my experience.
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel, Kitsune`s Curse, Brick Rick and Hyperdrive for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

GUNHED

If somebody wants a 2 button joystick and both buttons make one 'fire 1' you can send me that joystick and I fix it - for postage money. I did that here to lot (I mean 2) joysticks already.  ;)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Gryzor

As @andycadley implied, it's certainly down to the type of game, really. Without knowing how you use the controls for the rest of the time it's hard to say whether it's bad or not...

awergh

Quote from: Gryzor on 10:04, 01 November 18
As @andycadley implied, it's certainly down to the type of game, really. Without knowing how you use the controls for the rest of the time it's hard to say whether it's bad or not...


I think your right as it really depends on the game but I also think its the sort of thing I should have worked out before I started rather then thinking about it at the last minute.
Ultimately the game sortof works with a single button joystick but not really so its best to use a 2 button joystick or use the keyboard to switch weapons.

Powered by SMFPacks Menu Editor Mod