Mrlegoboy 2019-05-19 16:42
Im wanting to make a space shooting game where you can choose to either control your ship with touch or the gamepad. If i can disable the touchscreen, I will only have to make code for 1 style of in game menu, but if not i have to encode a touch menu and a gamepad menu.
Timo 2019-05-19 20:24
I decided that it should not be possible to switch between different controls in one program. Some people already asked for it, but this is my point:
There were games that used touch control on the title screen ("tap to start") and then switched to gamepad. While on a phone this works well, it is annoying on a computer, if you have to switch between the keyboard (or even a real gamepad) and the mouse/touchpad.
Also I think you should try to make one control type which is as good as possible instead of trying to make several.
Anyway, I still have the idea of offering several gamepad modes on iPhone, so you could choose the one which fits your game best.
was8bit 2019-05-20 04:43 (Edited)
I made my own touchable “gamepad” here...
The advantage is that it works ok on an iPad, letting you have full touch ability and also have a gamepad ... BUT it will be unplayable on a computer with a mouse, and may not work well on an iPhone...
MANY games will suggest one control over another... fast paced shooters style games require gamepad control...
One trick with touch is making it “smart”. For both select and move, a touch that holds its position for a couple seconds is a selection... a touch this starts and ends in two different positions is a swipe and therefor is a move...
I use this trick here...
Mrlegoboy 2019-05-20 17:20
Is it possible to yse a 3rd party controller on iphone? I remember seeing you do it for ipad, Timo
Timo 2019-05-20 17:22
Yes, but they must support iOS officially. Most of the cheap bluetooth controllers won't work :/
was8bit 2019-05-20 18:10 (Edited)
I paid about $50 for mine from Walmart, and it works great.... the controller is way better than the gamepad controls..
Nimbus - steelseries