Someone please, I'm begging you, PLEASE, show me how to make a pick up item script! I have been looking for 4 days now and no where online shows how to make a pick up item script! I am about to go insane! This is what I want to happen. Player goes up to the item on the ground, picks it up, and the player has the item. I am trying to make the player pick up 5 pokeballs right now and I am having troubles! =( Here is my script:
#org $script
lock
faceplayer
checkflag 0x1201
if 0x01 goto $done
giveitem 0x04 0x05
boxset 6
setflag 0x1201
removesprite 0x5
release
end
#org $done
removesprite 0x5
boxset 6
release
end
What happens is after I pick up the pokeball, i get my items but the sprite is still there and the sprite is only removed after I leave the screen, How do I make the sprite leave ASAP? Please help me!