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 Black lines on script (https://www.pokecommunity.com/showthread.php?t=386804)

Wüfzhéévk January 3rd, 2017 10:50 AM

Black lines on script
 
Hello, I was wondering if it was possible to make (with a script) to show two black lines, one up and the other down of the screen (The bottom one bigger) in order to make it look like a cinematographic effect. I think that it is with a writebytetooffset command but still don't know....

BluRose January 3rd, 2017 12:49 PM

well idk if this will work, but from this really awesome documentation on things
Code:

4000044h - WIN0V - Window 0 Vertical Dimensions (W)
4000046h - WIN1V - Window 1 Vertical Dimensions (W)
  Bit  Expl.
  0-7  Y2, Bottom-most coordinate of window, plus 1
  8-15  Y1, Top-most coordinate of window
Garbage values of Y2>160 or Y1>Y2 are interpreted as Y2=160.


all we care about is window 0 atm
so just insert this in a script

writebytetooffset 0xYY 0x4000044
writebytetooffset 0xXX 0x4000045
where YY = how many pixels to cut off the bottom-1, and XX = 0xA0 - how many pixels to cut off top

note that the screen is 160px (0xA0) in vertical dimension
so just fill in where you want your block to be~

EDIT: oh and to revert
writebytetooffset 0x00 0x4000044
writebytetooffset 0xA0 0x4000045

tkim January 3rd, 2017 12:57 PM

are the black lines for a cutscene such as the sea-gallop animation?


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