The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script How to make sprite invisible at the beggining of the game?

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 12th, 2017 (2:56 PM).
WikiThePotato WikiThePotato is offline
 
Join Date: Jan 2017
Posts: 9
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
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 12th, 2017 (3:52 PM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
Quote:
Originally Posted by WikiThePotato View Post
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.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 12th, 2017 (5:56 PM).
Anthroyd's Avatar
Anthroyd Anthroyd is offline
Professor
 
Join Date: May 2016
Location: United States
Gender: Male
Posts: 210
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
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 13th, 2017 (12:10 AM).
WikiThePotato WikiThePotato is offline
 
Join Date: Jan 2017
Posts: 9
So after seeing those i should be able to make it? I'll check it out.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old January 13th, 2017 (12:12 AM).
WikiThePotato WikiThePotato is offline
 
Join Date: Jan 2017
Posts: 9
Quote:
Originally Posted by Bewear View Post
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?
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old January 13th, 2017 (12:37 AM).
Skeli's Avatar
Skeli Skeli is offline
Lord of the Rings
 
Join Date: Apr 2014
Location: Canada
Age: 24
Gender: Male
Nature: Adamant
Posts: 300
Quote:
Originally Posted by WikiThePotato View Post
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.
__________________
Pokemon Unbound

Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old January 13th, 2017 (11:05 AM).
WikiThePotato WikiThePotato is offline
 
Join Date: Jan 2017
Posts: 9
Quote:
Originally Posted by Skeli789 View Post
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.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old January 13th, 2017 (11:13 AM). Edited January 13th, 2017 by WikiThePotato.
WikiThePotato WikiThePotato is offline
 
Join Date: Jan 2017
Posts: 9
Quote:
Originally Posted by Anthroyd View Post
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.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:17 AM.