[help] movement direction client server

This forum is currently in read-only mode.
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • i'm having problem about my game at movement direction . i want develop using client server architecture so this is a sample code at server side

    # function to manage  movement
       def Network_move(self, data):
          if ((data['player'] == 1) and (System.globalvar("myPlayer") != 1)):
          elif ((data['player'] == 2) and (System.globalvar("myPlayer") != 2)):
    this is at client side
    [code:1lgq263f]if System.globalvar('myPlayer') == 1:
       connection.Send({'action': 'move', 'player': 1, 'playerx': player1.X, 'playery': player1.Y})
       connection.Send({'action': 'move', 'player': 2, 'playerx': player2.X, 'playery': player2.Y})
    maybe this pict can show my problem. any can help?  
    Uploaded with [url=http://imageshack.us]ImageShack.us[/url]
    Uploaded with [url=http://imageshack.us]ImageShack.us[/url]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)