11-28-05 10:54 PM
1. i dont want characters to coincide on a tile...
Ouch! that makes life more difficult. You could maintain state on the
server and have each player request access to a tile before moving there
using an nc.call. If the position is available the server can set the
user's marker in the tile within a "gameBoard" SO. When the SO updates
are received by all clients the marker is moved into the requested
square. The gameBoard SO has one slot per tile.
However, this reduces the user experience by delaying motion until the
server responds. An alternative is to allow the user to visibly move
into any unocupied tile and send an nc.call. The server will decide who
wins. If the user isn't allowed in then they are "bounced out" by the
user who got in first.
2. For a faultless path finding how can i figure my shared object in my
application
If each slot in the SO represents a tile I'm not sure why this is a
problem?
Yours truly,
-Brian
Beto A wrote:
>You should consider using send on your sharedObjects. Shared Objects shoul
d only be accessed when a new user comes on.
> your_so.send("moving", & #123;available:false,draging:Objectname,
appliedt
o:Username})
> //when done moving it simply
> your_so.send("moving",{available:true,draging:Objectname, appliedto:
""});
>
> and manage your array on the client...this should allow you to keep every
thing in check.
> On the server you should use your_so.lock and .unlock,every time you do a
setProperty, to keep the SO from getting corrupted.
>
>Hope that helps
>
> Beto
>Naicu Octavian <naicuoctavian-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrot
e:
> There is SS way a way to lock a shared object while you are updating it.
Look for it in the docs.
>
>qwerty ytrewq wrote: i am trying to make an avatar chat on an tile based ar
ena... so i dont want characters to coincide on a tile...
>
>For example a user presses an empty tile but while he is on the way to that
tile another user can press and reach that tile... so how can i prevent con
ciding...
>
>For a faultless path finding how can i figure my shared object in my applic
ation... do you have any advice or example for this...
>
>Note : Please dont send me path finding links... the problem is not only pa
th finding... it includes the multiuser problems :D
>
>i want to make an application as in http://www.mycoke.com/startConfigVe...www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
> ________________________________________
__________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>
>
>---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>=-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=-----------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@pu
blic.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|