turf/level1
icon = 'turf.dmi'
icon_state = "death"
Entered(mob/M)
if(ismob(M) && M.client) // only let players through
M.loc = locate(1,8,1) // change this location to where you want to teleport them to
i got that but how i make it you cna jump on it to let you through cause it only lets me trough if i walk into it not jump ontop of
ID:270748
Aug 18 2006, 2:09 pm
|
|
In response to GhostAnime
|
|
I believe his actual problem is that he is making a platformer game, and the system he uses for gravity uses loc=locate(x,y-1,z)) or just does y--, neither of which will call Enter(),Entered(),Exit(), or Exited().
Alien link, assuming I was correct about the platformer part, to fix this you will need to find something similar to lines I mentioned above (loc=locate() or y--) and replace them with something that will call Entered(). I would suggest doing something like this: Move(locate(x,y-1,z),dir) |
In response to DarkCampainger
|
|
Oh so that's what DeathAwaitsU was saying to me in wiz_chat >_<''
Yeah, you're post make a lotta sense >. - GhostAnime |
In response to DarkCampainger
|
|
i still dont understand can you just edit my code to let me be able to go in it from left right up and down please and it is a kirby game so yea
|
2) Use near-proper English, you have all the time to type what you want so we can try to understand you (sorry if you can't speak/type it properly but atleast try if you aren't).
3) What do you mean by "jump"? You mean make someone warp ONLY if they walking down/up to it and not making it when they try to enter from the any other direction? eg:
XoX
XTX
XXX T=Teleport, o=mob
if so:
if(ismob(M) && M.client && (get_dir(M,src [aka the teleporter turf])==NORTH||get_dir(M,src)==SOUTH))
- GhostAnime