ID:137783
 
I would like to be able to make a new layer in DM and toggle the ability of specific mobs to see that layer.

A good example of what I mean can be seen in Yoshi's Island for SNES. On certain levels there were clouds you can pass through. From outside the clouds, they appear as big masses of white fluff. When you move into a cloud, you can see the maze within.

I know there is a movement already to change the mob.sight variable. Perhaps this functionality could be incorporated into the new sight variable.

For example

#define CLOUDLAYER = 6

area/cloud
Enter(O)
if(ismob(O))
O:sight.remove(CLOUDLAYER) // or however you choose to make this work
Exit(O)
if(ismob(O))
O:sight.add(CLOUDLAYER)

obj/cloud
icon = 'cloud.dmi'
layer = CLOUDLAYER

I know I could produce an effect like this with image(), but it would be cumbersome with large scale effects.
On 7/20/01 11:58 am Shadowdarke wrote:
I would like to be able to make a new layer in DM and toggle the ability of specific mobs to see that layer.

A good example of what I mean can be seen in Yoshi's Island for SNES. On certain levels there were clouds you can pass through. From outside the clouds, they appear as big masses of white fluff. When you move into a cloud, you can see the maze within.

I know there is a movement already to change the mob.sight variable. Perhaps this functionality could be incorporated into the new sight variable.

For example

#define CLOUDLAYER = 6

area/cloud
Enter(O)
if(ismob(O))
O:sight.remove(CLOUDLAYER) // or however you choose to make this work
Exit(O)
if(ismob(O))
O:sight.add(CLOUDLAYER)

obj/cloud
icon = 'cloud.dmi'
layer = CLOUDLAYER

I know I could produce an effect like this with image(), but it would be cumbersome with large scale effects.

Hrm. This is a nifty idea... but I don't really see why particularly to use the sight variable. Granted, I think I've heard Dantom say that the sight variable is due for an overhaul, but wouldn't it make a little sense to do something along the lines of giving mobs a max (and possible min) visible layer? It wouldn't be quite as flexible, but it could be a bit simpler.
On 7/20/01 11:58 am Shadowdarke wrote:
I would like to be able to make a new layer in DM and toggle the ability of specific mobs to see that layer.

A good example of what I mean can be seen in Yoshi's Island for SNES. On certain levels there were clouds you can pass through. From outside the clouds, they appear as big masses of white fluff. When you move into a cloud, you can see the maze within.

This sounds like a possible addition/twist to a feature that is on The List: That is, to provide a default icon that is shown for turfs that people can't see, instead of the black that currently shows.

That way you could have the standard effect where you see the roof of the building until you walk inside, at which point you'd see the inside of the building.