ID:273363
Feb 25 2010, 10:51 pm
|
|
Ok i am currently making a bleach game from scratch and i was wondering how would i go about making the creatures in my game have no density if u cant see em but if u can then they have density.. i can make them invisible but i cant take away their density.
|
mob/monster Or since you claim that doesn't work. >.> mob/monster |
I'd handle it something like this.
turf The only requirement for this is that you make things that are possibly not seen by the player have a density of 0. Anything with a density of 1 will automatically block the player. |
In response to Dariuc
|
|
This won't work. By the time Bump() is called, they're already blocked from Enter()ing the turf they're trying to get into.
|
In response to Popisfizzy
|
|
You forgot to check if m is a mob before calling SeeCheck().
A more generic solution might be preferable: atom And then to adapt that to this specific purpose: atom/movable/StepOn(var/mob/M) |
you could give your character a state.
like
then you could edit the mob/shinigami bump() so that when your character bumps into a monster, the monsters density turns to 0 for a second or two as long as they arent in spirit form,just long enough for them to pass through.