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)
-   -   Script How to make sprite invisible at the beggining of the game? (https://www.pokecommunity.com/showthread.php?t=387346)

WikiThePotato January 12th, 2017 2:56 PM

How to make sprite invisible at the beggining of the game?
 
I've had some problems with hiding sprites.I want to do it similar to professor Oak in Pallet town.Using Adv Map you can clearly see that Oak is right next to players house, but it's somehow hidden.I want to make that. Script at the exit of pallet town begins with "showsprite 0x3", which proves that Oak is hidden and this just makes him visible.
I've read somewhere that you need to setflag on sprite to make it invisible in the beggining... But how do i do that?
I tried this(using fat guy in Pallet as a test):
#dynamic 456794

#org @start
hidesprite 0x2
setflag 0x750
end
----------------
but ofc it didn't work. I did put flag 750 in person id but nothing happened.
Please help. Since english is not my native language i apologise for my grammar mistakes. Also because of that reason i need it explained step by step

Christos January 12th, 2017 3:52 PM

Quote:

Originally Posted by WikiThePotato (Post 9546170)
I've had some problems with hiding sprites.I want to do it similar to professor Oak in Pallet town.Using Adv Map you can clearly see that Oak is right next to players house, but it's somehow hidden.I want to make that. Script at the exit of pallet town begins with "showsprite 0x3", which proves that Oak is hidden and this just makes him visible.
I've read somewhere that you need to setflag on sprite to make it invisible in the beggining... But how do i do that?
I tried this(using fat guy in Pallet as a test):
#dynamic 456794

#org @start
hidesprite 0x2
setflag 0x750
end
----------------
but ofc it didn't work. I did put flag 750 in person id but nothing happened.
Please help. Since english is not my native language i apologise for my grammar mistakes. Also because of that reason i need it explained step by step

If the person ID is 750 and you set the flag at the beginning of the game (maybe a level script in the player's room), any overworld sprite with that ID should be hidden until you clear the flag. If you're doing it in the same map as the sprite you want to hide, make sure hidesprite command is for the 'Person event' number in Advance Map, not event number.

Anthroyd January 12th, 2017 5:56 PM

You need to learn about level scripts. See my tutorial here: https://www.youtube.com/watch?v=FttPQvAyWB4&t=29s
You also need to know about vars in addition to flags, which you can learn about here: https://www.youtube.com/watch?v=II4_T3MCnLo

WikiThePotato January 13th, 2017 12:10 AM

So after seeing those i should be able to make it? I'll check it out.

WikiThePotato January 13th, 2017 12:12 AM

Quote:

Originally Posted by Bewear (Post 9546212)
If the person ID is 750 and you set the flag at the beginning of the game (maybe a level script in the player's room), any overworld sprite with that ID should be hidden until you clear the flag. If you're doing it in the same map as the sprite you want to hide, make sure hidesprite command is for the 'Person event' number in Advance Map, not event number.

BUt i did that person event number, as you can see. Can you tell me how do i set the flag like they did to Oak?

Skeli January 13th, 2017 12:37 AM

Quote:

Originally Posted by WikiThePotato (Post 9546562)
BUt i did that person event number, as you can see. Can you tell me how do i set the flag like they did to Oak?

There's a special script somewhere that sets certain flags when the game starts (Oak, for exmaple). I don't know where it is though.

WikiThePotato January 13th, 2017 11:05 AM

Quote:

Originally Posted by Skeli789 (Post 9546582)
There's a special script somewhere that sets certain flags when the game starts (Oak, for exmaple). I don't know where it is though.

Oh well i'll try my best to find it. Thanks a lot.

WikiThePotato January 13th, 2017 11:13 AM

Quote:

Originally Posted by Anthroyd (Post 9546330)
You need to learn about level scripts. See my tutorial here: https://www.youtube.com/watch?v=FttPQvAyWB4&t=29s
You also need to know about vars in addition to flags, which you can learn about here: https://www.youtube.com/watch?v=II4_T3MCnLo

Awesome tutorials , helps a lot ! Have my like :) I'll update if i succeed

UPDATE :
STILL NOT WORKING. I'm noob at this :( Can somebody please write that level script that hides sprite and explain it? Thank you in advance.


All times are GMT -8. The time now is 9:17 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.