Hey again. I was just wondering how the morpher on Classic was made. If you aren't familiar with it, you can fire it next to someone and get all his/her clothes, shield, sword, and head. It's really quite cool. I don't quite know how to do this, though. Here's what I would do...
NPC Code:
if (weaponfired)
{
// Do this for each direction
if (playerdir == 1)
{
this.pindex = testplayer(playerx - 1, playery);
// Use the player's index to get all his/her clothes.
}
}
But um... What do I do with the player's index then? I don't know of anything to return another player's clothing colors.