ID:152940
![]() Jul 1 2005, 7:39 am
|
|
Problem description: Im making a maze type game, but players have to have density otherwise they can walk through walls, how am I to fix this? |
then players blocxk other players, i need something that will let them walk through each other, but not the walls....
|
Popisfizzy wrote:
just make the spaces in between the mazes two wide instead of one I know theres a way to have a player density of 0 and a wall density of 1... Like in DWMA2 they have a player density of 0, but there is a wall density too |
mob/Move() *** Untested *** |
pdensity.dm:2:error:var/mob/M:undefined var
pdensity.dm:3:error:M:undefined var pdensity.dm:3:error:locate:undefined proc pdensity.dm:4:error:else :'else' clause without preceding 'if' statement pdensity.dm:4:error::missing expression i dont know what id need to plug in to fix that |
You copied and pasted it, tsk tsk tsk; thats veery bad =P.
Anyway just retab it, here on the forums its all done with spaces. O-matic |
well now i got 2 errors...
pdensity.dm:2:error:var/mob/M:undefined var pdensity.dm:3:error:M:undefined var |
Hmm change it to for()
Also, put a return at the end, indented, so that it does not contiouslly warp you. Note: This is just a patch job, this probablly isn't the best way to do it, but it works. |
Code:
mob/Move() Problem description: is what i was suppose to edit to? |
mob/Move()
for(var/mob/M in get_step(src,src.dir)) src.loc=locate(M)//Moves it on top of M return ..() |
i think i can edit that in, just add density to player so they will use the walk through, but i gtg ill let you know if it works
|
wouldnt it be easier to make your walls use Enter()?
mob |
player
icon = 'player.dmi'
density=1
that's like the first thing you learn in the DM guide