The coins will NOT delete them selves when I jump to grab them, I have no clue why, its just too confusing....
atom/proc/Bumped()
mob
Bump(atom/A)
A.Bumped()
..()
obj
coin
icon = 'obj.dmi'
icon_state = "coin"
density = 1
Bumped()
usr.coins += 1
del(src)
ID:149084
Jul 9 2002, 12:47 pm
|
|
Branks wrote:
The coins will NOT delete them selves when I jump to grab them, I have no clue why, its just too confusing.... In general practice, you should call Bumped(src), and set up Bumped() so it's Bumped(atom/movable/A). obj That would make this: obj/coin I don't think this actually solves your problem, but it's much better code. If you have enemies moving around, they could grab coins and such, but the grab would be attributed to usr, which might not be correct. And if Bumped() is used to calculate whether the player is hurt, then two monsters bumping into each other would cause that same damage when usr is used. Lummox JR |
Or you can alter it and do something like this
Then again, if it is something with the del proc, you can take the cheap way out and do this
I hope this helps
--Ken--