How can instantiate GameObject (items) that can be seen by other players?

0 votes
What is the best way to do so?

I really don't want that object send its own position overtime.
asked May 17, 2014 in AppWarp by antm.vn (45 points)

1 Answer

0 votes
When ever a player joins a room the other players will get onUserJoinedRoom listener called. You can instantiate at that moment. The next message the player should send, should be his/her position so that you can reflect the newly created gameobject with its location.

There can also be another way that we have used in our samples. What we did is maintained a local list of all joined players. They all keep sending there positions at 10-15 msg/sec rate. When ever we receive a message we simply check if he exists in our local list or not. If he exists, we update his gameobject. If for the first time we are receiving a message from him, we instantiate its game object and add him to our local list.

If you want to instantiate items or NPCs i.e. playable gameobject, you must check out AppWarp S2 on-premise solution which allows you to extend our logic with yours. There you can write logic on server side to generate items or NPCs.
answered May 19, 2014 by Suyash Mohan (900 points)
edited May 19, 2014 by Suyash Mohan
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...