- 29
- Posts
- 10
- Years
- Seen Jul 11, 2014
This script is set up as a map script to trigger on entering map. Here's the code:
In my mind, it's very straightforward and simple. I've used hidesprite many times before, but it was used alongside setflag and worked without a hitch. I don't believe I can use setflag here, (I probably can, but I think it would make it more complicated than it needs to be) because I want this sprite to appear after triggering an event, hence the checkflag.
I've also tried reversing it and setting the sprite as hidden in order to use showsprite in place of hidesprite, but that hasn't worked either.
Why won't this guy stay hidden?
Code:
'---------------
#org 0x804825
checkflag 0x1210
if 0x0 goto 0x880486E
end
'---------------
#org 0x80486E
hidesprite 0x01
end
In my mind, it's very straightforward and simple. I've used hidesprite many times before, but it was used alongside setflag and worked without a hitch. I don't believe I can use setflag here, (I probably can, but I think it would make it more complicated than it needs to be) because I want this sprite to appear after triggering an event, hence the checkflag.
I've also tried reversing it and setting the sprite as hidden in order to use showsprite in place of hidesprite, but that hasn't worked either.
Why won't this guy stay hidden?