The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other how to hide a sprite (https://www.pokecommunity.com/showthread.php?t=355509)

pokefreak890 September 12th, 2015 10:50 AM

how to hide a sprite
 
so i sucessfully created a legendary pokemon battle and everything but the problem is after i beat it or run away it dosent dissapear so i was wondering how

heres the code for kyogre primal that im using
'---------------
#org 0xBBE791
lockall
checksound
cry 0x194 0x2
pause 0x28
waitcry
setvar LASTTALKED 0x1
setwildbattle 0x17A 0x50 0x0
setflag 0x8C1
special 0x13A
waitstate
clearflag 0x8C1
setvar 0x4001 0x0
special2 LASTRESULT 0xB7
compare LASTRESULT 0x1
if 0x1 goto 0x823B084
compare LASTRESULT 0x4
if 0x1 goto 0x823B092
compare LASTRESULT 0x5
if 0x1 goto 0x823B092
setvar 0x4039 0x1
setflag 0x1BE
releaseall
end

'---------------
#org 0x23B084
setvar 0x4039 0x1
setflag 0x1BE
goto 0x827376D

'---------------
#org 0x23B092
setvar 0x8004 0x194
goto 0x8273776

'---------------
#org 0x27376D
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
release
end

'---------------
#org 0x273776
fadescreen3 0x1
hidesprite LASTTALKED
fadescreen3 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8273204 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end


'---------
' Strings
'---------
#org 0x273204
= The [buffer1] flew away!

if anyone could help that would be great

Pokemon_XY September 13th, 2015 1:44 AM

To permanently hide a sprite is really simple for a person event:
Code:

hidesprite 0x800f //var_800f holds the person event id in the map you've talked to
setflag 0x[person ID in AdvanceMap] //use a safe flag to fill in the ID section in AdvanceMap
//other codes in the script fragment




All times are GMT -8. The time now is 2:30 AM.


Like our Facebook Page Follow us on Twitter © 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.