ID:267006
 
how would you go about making other invince while in the same map? I wanna make something like pacman or some arcade game and I need others when you play it to be invinc to others so they can't see each other and they can only see when they are spost to see (this will be easyer than making 100 maps for each character)
Shy_guy197 wrote:
how would you go about making other invince while in the same map?

Umm... what?
The way you're using the word "other" doesn't make any sense at all. Other what?

I wanna make something like pacman or some arcade game and I need others when you play it to be invinc to others

Ah, that's what you meant. Clarity helps.

...so they can't see each other and they can only see when they are spost to see (this will be easyer than making 100 maps for each character)

Well, I can offer you an idea of how to make players invisible to each other, anyway.
Basically what you want is to give each mob an /image, stored as a var, that can be sent to other players' client.images lists and removed again at will. Make the default icon for each mob null (that is, just don't define it), so they can't be seen.
mob
var/image/im

New()
..()
im=image(icon='player.dmi',loc=src)
src << im // see yourself

Del()
if(im) del(im)
..()

proc/Show(client/C)
if(C && im) C.images+=im

proc/Hide(client/C)
if(C && im) C.images-=im

proc/SeenBy(client/C)
return (C && im && (im in C.images))
To show this player to another player, call Show(otherplayer.client).

As for your question about invincibility, remember that hits and attacks and such aren't automatically coded into DM; you can define how you want such things to work, and whether to ignore certain players.

Lummox JR
In response to Lummox JR
I don't believe he actually meant "invinicble" at any point in his post... I'm pretty sure the entire question is about being "invisible" to others (to clear up that first paragraph)...
really sry >_... Maybe this will explain it a bit... really sry from before ^_^
In response to Shy_guy197
Okay, I'm confused. :)

Do you want to give each player their own map, with their own dots to collect and ghosts to avoid, which are separate from everyone else's dots and ghosts? 'Cause that sounds like a singleplayer game to me, in which case you don't need to worry about making different ones for each player.