Discussion list for Unity developers.
unity-dev at moock.org
Mon Jun 11 21:32:33 CDT 2007
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