|
| 22 Jul 2016 11:00 AM |
With user input service, I tried the Humanoid.Jumping event and it does not work on mobile.
So other methods preferably with user input service would be appreciated right now, thank you. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:01 AM |
there's something called JumpRequest for mobile i think
Add 13,000 posts |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:01 AM |
| Interesting I will try looking that up. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:03 AM |
| I looked up jump request on wiki, and it says it is fired when the space bar is pressed so I don't think it would work with mobile. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:04 AM |
someone said it does
try at least
Add 13,000 posts |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:07 AM |
I will try I guess, skeptical if it will actually work though. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:12 AM |
| Well I tried it on desktop and it is randomly firing for some reason... |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:15 AM |
I should probably describe what I am trying to do,
Right now I am working on detecting when a player is trying to jump out of a seat, if they do destroy the weld and stop an animation.
I think it is randomly firing cause the player itself without any input is already trying to stand up, therefore sending a jump request. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:21 AM |
| Also I stand corrected cause it does work on mobile, although it still experiences the same problem that I mentioned on my other post. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:24 AM |
Is there a way to detect if their actually tapping on the jump button?
So some type of event? |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 11:30 AM |
If you want to see what I mean by it is randomly firing go into the game and into the cafe, there you can test it by sitting in the seats. https://www.roblox.com/games/395143175/Neutronium-City
Be sure to sit multiple times, cause some times it does not randomly fire the event. |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 12:28 PM |
theres a jump property in the humanoid, and whenever a player taps the space bar or the jump button on mobile, it sets it to true then false so you can make a loop that checks when the jump is true
or im totally wrong and tried to be smart |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2016 12:40 PM |
| I think your right although that sounds really inefficient. |
|
|
| Report Abuse |
|
|
| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
| |
|
|
| 22 Jul 2016 12:53 PM |
| @Kord I could try that I guess. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2016 01:02 PM |
| What arguments can I use in a changed event on the humanoid to see if it is the jump bool that has changed? |
|
|
| Report Abuse |
|
|
| |
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 22 Jul 2016 01:04 PM |
doesn't *really* matter just do this:
humanoid.Changed:connect(function() if humanoid.Jump then print 'jumped!' end end) |
|
|
| Report Abuse |
|
|