• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by eddyvanleuten · Jan 18, 2014 at 09:38 PM · tower defensesmartfoxtraffic

MMO Tower Defence, Network Traffic

I want to make MMO Tower Defence game with Smartfox as network asset. Because I want to implement a ranking system, the server needs to handle the game logic and database management. My question is how can I minimize traffic in a tower defence game. I have a lobby where people can create games, and people can join. Lets they 10 players are in this game. Every tower shoot etc.. needs to be authorized and send to every client in this game. When many players playing this game, the traffic will be very high (because of many towers u can build). How can I solve this problem? Or am i thinking wrong?

Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by xt-xylophone · Jan 20, 2014 at 02:37 AM

Can towers be manually controlled or do they operate on their own? If can be controlled it gets much more complicated, if they just go on their own then its a bit easier.

Just have to so that when a player creates a tower, they don't own the network view any more, the server does. The server will do all the shooting logic of the tower and it will relay that to all the players. Though it must remember its 'owner' so that it can give kill accreditation if you need that.

In tower defences the players are pretty much watching the game and their only input is placement of towers of special abilities they use.

Comment

People who like this

0 Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image VildNinja · Jan 20, 2014 at 02:52 AM 1
Share

with some synchronization, the tower wouldn't have to send anything over the network, assuming its behavior is 100% predictable. then the client and server would be able to run the games simultaniosly, only requiring network whenever the player performs an action.

avatar image xt-xylophone · Jan 20, 2014 at 03:59 AM 0
Share

True. A hacker may be able to do something about it though

avatar image eddyvanleuten · Jan 20, 2014 at 03:20 PM 1
Share

Thanks thats the tipps I needed. So Client and Server do both the logic and Syncronization will keep the client updated. And only Syncronization Information and Player actions will be send over the network.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

smartfoxserver keeps me logged in after exiting game 1 Answer

how to parse the SFSObject from the paramemter(smartfox server)) 0 Answers

Smartfox login error 0 Answers

Npc traffic (Pedestrian) system 0 Answers

Create a popup menu at specific location 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges