ID:171190
Oct 29 2004, 4:58 pm
|
|
How would i make a hammer like the one in the original donkey kong? like it shows the hammer appear over your head and move a step below you if your facing north or south, and ones to the top and left/right if your facing left.right?
|
It'd be easiest to create a hammer object that has four different icon states each with four to eight directions. Each one would have its determined direction filled only with the hammer, and the remaining 3/7 filled with nothing. Said icons would be applied as pixel offset overlays on the client mob.
Enjoy. |
I have no idea how the hammer appear in Donkey Kong, but I'm sure mob/Move() would work(or client/Move(), if such a proc exists)