Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Vibrate device only on client side

$
0
0
I'm working on a mobile multiplayer game. It's is for a project about haptic feedback, so correct vibration is crucial. For the vibration patterns I use the TouchSense Plug-In by Immersion.

I need the vibration patterns to play only on the client side, so no every player gets the feedback of everyones actions.

Code (CSharp):
  1. [SyncVar]float rampTimer;
  2.  
  3. void Update(){
  4. if(touchingGoal==true){
  5.    CmdRampUp():
  6. }
  7. }
  8.  
  9.         CmdTouchingGoal ();...
Vibrate device only on client side

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>