![]() |
Difficulty Making a sprite disappear
Hello,
I recently began work on my own custom Pokemon FireRed Romhack, and got to the point where the player chooses their starter. However, I ran into difficulty with making the Pokeball disappear when the player chooses the pokemon they want. The sprite does disappear at first, however after the player takes a step, it reappears again, making me believe it's an issue with Flags. However, I can't figure out what is wrong. Here is the script: #dynamic 0x800000 #org @start lock checkflag 0x205 if 0x1 goto @chosenpokemon checkflag 0x206 if 0x1 goto @chosenpokemon showpokepic 0x440 0xA 0x3 pause 0x30 msgbox @tl 0x5 compare 0x800D 0x1 if 0x1 goto @yes hidepokepic release end #org @chosenpokemon msgbox @tl2 0x6 release end #org @tl = Prof: So, You choose [green_fr]Turtwig[black_fr]? #org @tl2 = Prof: You can't take another! #org @yes hidepokepic hidesprite 0x5 setflag 0x204 givepokemon 0x1B8 0x5 0x8B 0x0 0x0 0x0 setflag 0x828 release end The Person ID set to the pokeball is 0204, and the person event no. is 5. If anyone can help me figure out the issue, it'll be very appreciated! Thank you in advance. |
At first glance, your info and script seem fine. The first thing I think of is maybe the person ID isn't set to 204 as you say it is. Perhaps you're loading from a save where it is already loaded as something else. Try leaving and reentering the building before testing it.
|
| All times are GMT -8. The time now is 9:20 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.