|
Home > Archive > Macromedia Flash Server > November 2005 > Avatar chat in a tile based arena
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Avatar chat in a tile based arena
|
|
| qwerty ytrewq 2005-11-28, 5:54 pm |
| i am trying to make an avatar chat on an tile based arena... so i dont wa=
nt characters to coincide on a tile...
=20
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 prev=
ent conciding...
=20
For a faultless path finding how can i figure my shared object in my ap=
plication... do you have any advice or example for this...
=20
Note : Please dont send me path finding links... the problem is not onl=
y path finding... it includes the multiuser problems :D
=20
i want to make an application as in http://www.mycoke.com/startConfigVe=
go.do
=20
Sorry for my bad english...
=09
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Naicu Octavian 2005-11-28, 5:54 pm |
| There is SS way a way to lock a shared object while you are updating it. =
Look for it in the docs.
qwerty ytrewq <yasin_ergul-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: i am trying to make an avat=
ar chat on an tile based arena... so i dont want characters to coincide o=
n a tile...
=20
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 pr=
event conciding...
=20
For a faultless path finding how can i figure my shared object in my ap=
plication... do you have any advice or example for this...
=20
Note : Please dont send me path finding links... the problem is not onl=
y path finding... it includes the multiuser problems :D
=20
i want to make an application as in http://www.mycoke.com/startConfigVe=
go.do
=20
Sorry for my bad english...
=20
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
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=20
http://mail.yahoo.com=20
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Beto A 2005-11-28, 5:54 pm |
| You should consider using send on your sharedObjects. Shared Objects sho=
uld only be accessed when a new user comes on.
your_so.send("moving", & #123;available:false,draging:Objectname,
appliedto:U=
sername})
//when done moving it simply
your_so.send("moving",{available:true,draging:Objectname, appliedto:""}=
);
=20
and manage your array on the client...this should allow you to keep eve=
rything 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.
=20
Hope that helps
=20
Beto
Naicu Octavian <naicuoctavian-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
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 =
arena... 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 th=
at tile another user can press and reach that tile... so how can i preven=
t conciding...
For a faultless path finding how can i figure my shared object in my appl=
ication... do you have any advice or example for this...
Note : Please dont send me path finding links... the problem is not only =
path finding... it includes the multiuser problems :D
i want to make an application as in http://www.mycoke.com/startConfigVego=
..do
Sorry for my bad english...
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
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=20
http://mail.yahoo.com=20
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=20
=09
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Brian Lesser 2005-11-28, 5: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 should only be accessed when a new user comes on.
> your_so.send("moving", & #123;available:false,draging:Objectname,
appliedto: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 everything 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> wrote:
> 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 arena... 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 conciding...
>
>For a faultless path finding how can i figure my shared object in my application... do you have any advice or example for this...
>
>Note : Please dont send me path finding links... the problem is not only path finding... it includes the multiuser problems :D
>
>i want to make an application as in http://www.mycoke.com/startConfigVego.do
>
>Sorry for my bad english...
>
>
>---------------------------------
>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
>
>
>
> ________________________________________
__________
>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@public.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
| |
| qwerty ytrewq 2005-11-29, 7:45 am |
| First of all thanx for your replies... But there is still a problem...
=20
Lets say we fixed target tile selecting problem (so only one person can=
select a tile as a target). But when two user selects different targets =
they still can crush each other if a tile on their way to their target cr=
osses... Or some one can come and stay at a users path...
=20
Do you thing is this a right solution : in every movement we check avai=
lablity and if there is coinciding we draw a new path to target?
=20
Sorry for my terrible english... i may not tell what i think :D
=09
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Brian Lesser 2005-11-29, 5:45 pm |
| Oh, I see. Yeah that's even worse... For performance reasons you can't
do all the path finding on the server. So each client has to calculate
its own path. Off the top of my head I would explore two options:
1. Consider finding the path without regard to other paths and move
objects into the next square if it is open. If it is not open
recalculate the path - something you are probably doing anyway.
2. Calculate the path and send it to the server for adjustment based on
all the other paths the server has received. The server becomes a sort
of air traffic controller making small adjustments to keep paths from
overlapping. The server will maintain a record of all the paths. I don't
like this option as much for bandwidth reasons.
Yours truly,
-Brian
qwerty ytrewq wrote:
>First of all thanx for your replies... But there is still a problem...
>
> Lets say we fixed target tile selecting problem (so only one person can select a tile as a target). But when two user selects different targets they still can crush each other if a tile on their way to their target crosses... Or some one can come and s
tay at a users path...
>
> Do you thing is this a right solution : in every movement we check availablity and if there is coinciding we draw a new path to target?
>
> Sorry for my terrible english... i may not tell what i think :D
>
>
>---------------------------------
> 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@public.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
|
|
|
|
|