To hide a person like you are trying to do, you don't use a script. You use setflag/clearflag and change the person id(2nd to last number in A-map) to that flag.Hey quick level script question...
I have a level script, compiled and all:
Spoiler:Code:'--------------- #org 0x6B0B1C #raw 0x2 #raw pointer 0x86B0B22 #raw 0x0 '--------------- #org 0x6B0B22 #raw word 0x7777 #raw word 0x0 #raw pointer 0x8804256 #raw word 0x0 '--------------- #org 0x804256 setvar 0x7890 0x1 checkflag 0x800 if 0x1 goto 0x8804266 end '--------------- #org 0x804266 hidesprite 0x4 end
But, when I enter the level with flag 800 set, the sprite is still there. :/
Did I script something wrong, or is there a problem with something else?
To make them invisible, have the flag set. To have them visible, clear the flag(default, by the way). If you want the person to be hidden from the beginning, have the flag set as early as possible, then clear the flag when its okay to see them.
These flags can be used for multiple people too, so don't use more then one flag for people that appear/disappear at the same time.