||unity-dev|| Unity 3 Wishlist

Discussion list for Unity developers. unity-dev at moock.org
Tue Jun 12 09:30:13 CDT 2007


in Unity 2, you'd send your custom message using UClient.sendUPC():

sendUPC(roomID, methodName, arg1, arg2,...argn)

on the server, you add code to your custom room to receive the specified 
methodName.

does that meet your needs, or are you looking for something in addition 
to sendUPC()'s functionality?

colin


Discussion list for Unity developers. wrote:
> On 6/11/07, Discussion list for Unity developers. <unity-dev at moock.org>
> wrote:
>>
>> as david points out, you can do what you want today with some java code,
>> but we're always looking for ways to make things easier. for example,
>> right now we're  internally discussing the concept of a general
>> server-level object that can register for arbitrary events from any
>> other object and send communication that to any client or group of
>> clients.
>>
>> it would be nice to see how you'd like your example to work in code. if
>> you have time, please post some mockup code showing exactly how you'd
>> want to implement the above scenario.
> 
> 
> 
> I'd like to be able to register certain messages to trigger a call to my
> custom code/Java class.  An example is a player moving a game piece around
> on a map.  Lets say each time they move the game piece it can only move a
> total of 50 pixels and only move every 5 seconds.  I'd like to capture the
> incoming message, see if its a player movement message and then do two
> things with it:
> 1. Check if they are moving the game piece before their 5 seconds has
> expired (possibly cheating)
> 2. Ensure they only moved no more than 50 pixels distance (again, that they
> haven't cheated)
> (if you played the Unity based games Jungle War or H&D 2 Mini Game then you
> know what I mean)
> 
> I'll try to get some demo code or something up, right now I am trying to get
> completely up to speed from Flash MX 2004 to Flash CS3 - and theres a few
> more changes than I was expecting this far.  I'm going to get a VM up and
> running with Unity 2 soon so I can start messing again with my old projects
> and updating the code as needed.
> 
> Chad
> --
> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/
> 
> superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock


More information about the unity-dev mailing list