V_ersalty
(Versalty)
August 5, 2023, 9:02pm
#1
Hi developers,
I’m trying to disable jumping without making the jump button disappear on mobile devices.
I have tried setting the JumpPower to 0.001, but it resulted in my character spamming the jump animation whenever the button is held. Removing the jump animation also resulted in weird behavior.
Is there any way I can accomplish this?
3 Likes
R_obotz
(Robotz)
August 5, 2023, 9:20pm
#2
I recommend reading on these two topics as they might solve your issue.
JumpRequest
SetStateEnabled
2 Likes
Just disable the mobile jump button and add a copy of it. You can copy the default mobile jump button by:
Going to the Test Tab
Click Emulation
Near the top of the window select a mobile device
Click the playtest button
Wait for the game to load
Copy the ScreenGui named “TouchGui” from your PlayerGui
Be sure to rename it something different from “TouchGui” or it will completely replace the default mobile UI.
Edit: also, you can disable jumping by following the instructions in this post
4 Likes
system
(system)
Closed
August 19, 2023, 9:21pm
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.