So I have a vital game mechanic in my game and I have been having trouble balancing it with PC for a while now, so basically mobile players just have to tap the screen for the mechanic to work but they can use more than 1 finger so it basically just makes it unfair for the PC players, how can I stop this?
Maybe try making a button that you have to click go somewhere else on the screen every time it’s clicked?
Another idea is to have key presses also count as mouse clicks so for example the PC player can use the Z and X keys along with the mouse itself.
I do like the button moving at random positions but, do you think there is any way to do it programmatically?
maybe try this: local button = script.Parent
local initialPosition = button.Position
local function generateRandomPosition()
local x = math.random(0, game:GetService(“GuiService”):GetScreenResolution().X)
local y = math.random(0, game:GetService(“GuiService”):GetScreenResolution().Y)
return UDim2.new(0, x, 0, y)
end
local function onButtonClicked()
local newPosition = generateRandomPosition()
button.Position = newPosition
end
button.MouseButton1Click:Connect(onButtonClicked)
Like the others are saying, you could create a button designed like the jump button and put it in the TouchGui if you detect one.
So basically doing this would force players to only use 1 button, because currently I have it setup so that anywhere on the screen that they tap they can accelerate