Haptic Feedback For Iphone (uifeedbackgenerator) / Vibrating

Discussion in 'Technical Discussion' started by danielhannih, Aug 18, 2018.

  1. danielhannih

    danielhannih Boxer

    Joined:
    Jul 13, 2016
    Messages:
    48
    Likes Received:
    24
    I noticed that recent games always using the haptic feedback for the iPhone.
    Like if you score a point in the game, the iPhone vibrates.

    Also seen this in one of my favourite Buildbox games, Arctic Smash.

    Reading through the official Apple Documentation, it says it needs some kind of trigger.
    You can have a read here: Documentation for UIFeedbackGenerator
    I've tried to find events where I could trigger this like score, or game over within the XCode project, but without any success so far.

    Unfortunately I'm not a developer. So I was wondering if anyone of the Buildbox community was able to implement this with success?

    Thanks in advanced! :)
     
  2. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
    I was also wondering about this too. It would really help make the game more intuitive.
     
    danielhannih likes this.
  3. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
    I could really use this!
     
  4. andre_sprs

    andre_sprs Serious Boxer

    Joined:
    Sep 30, 2015
    Messages:
    844
    Likes Received:
    403
  5. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
  6. danielhannih

    danielhannih Boxer

    Joined:
    Jul 13, 2016
    Messages:
    48
    Likes Received:
    24
    Bump again :D
     
  7. adrogdesigns

    adrogdesigns Avid Boxer

    Joined:
    Dec 5, 2016
    Messages:
    318
    Likes Received:
    233
    I delete any game that makes my phone vibrate, cant stand it.
     
  8. danielhannih

    danielhannih Boxer

    Joined:
    Jul 13, 2016
    Messages:
    48
    Likes Received:
    24
    Really? Huh, that's interesting!
    Have you tried Tank Stars? Or Flip the gun?
    In my opinion, the tactile feeling is making those games a hundred times better.
     
  9. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
    Agree!
     
    danielhannih likes this.
  10. danielhannih

    danielhannih Boxer

    Joined:
    Jul 13, 2016
    Messages:
    48
    Likes Received:
    24
    Same here :D
     
  11. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
  12. Zac Chen

    Zac Chen Boxer

    Joined:
    Aug 4, 2018
    Messages:
    1
    Likes Received:
    0
    bump

    Looking to implement haptic feedback for a game that I am building on buildbox. If anyone can help that would be great!
     
  13. 5petersonzachary

    5petersonzachary Serious Boxer

    Joined:
    Jan 23, 2016
    Messages:
    569
    Likes Received:
    169
    bumping this for the last time
     
  14. landofgreendev

    landofgreendev Boxer

    Joined:
    Nov 9, 2018
    Messages:
    85
    Likes Received:
    18
    I'll BUMP again lol
     
  15. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    345
    Likes Received:
    215
    You can do like this ...
    if ( value ) {
    system.sendHapticFeedback(2);
    }
     
    weboha likes this.
  16. andre_sprs

    andre_sprs Serious Boxer

    Joined:
    Sep 30, 2015
    Messages:
    844
    Likes Received:
    403
    I think they're looking to do this in BB2
     
    rizwanashraf likes this.
  17. ramoos

    ramoos Boxer

    Joined:
    Mar 1, 2019
    Messages:
    9
    Likes Received:
    0
    I could really use this!
     
  18. wissemslimi974

    wissemslimi974 Boxer

    Joined:
    Nov 26, 2015
    Messages:
    67
    Likes Received:
    23
  19. Vikas

    Vikas Avid Boxer

    Joined:
    Feb 24, 2019
    Messages:
    117
    Likes Received:
    104
    Hi Guys I have implemented haptic feedback ! If you guys need help just give me your email and I will send you the code .
    I did it myself and I am a designer so what I have achieved so far

    1. Turn on turn off haptic feedback
    2. On Tap haptic feedback .
     
  20. Appossible

    Appossible Avid Boxer

    Joined:
    Aug 14, 2017
    Messages:
    198
    Likes Received:
    56
    appossiblegame@gmail.com

    Could you please send me the code? Thank you in advance~
     

Share This Page