View Single Post
  #109    
Old April 27th, 2013, 12:35 PM
dreamengine's Avatar
dreamengine
 
Join Date: Aug 2012
Gender: Male
Well I'm back with some more interesting stuff. Sorry for the double post, but I just felt this needed a separate post. In terms of Battle backgrounds, there are a few that change depending on the user of the move. For example in hyper fang, when you're the one using it then background is number 04, but when the opponent uses it, it becomes 05. I did some research and found out how to do that, but your own custom backgrounds you inserted.

Still Background Version 1

Simply insert the following code somewhere, and instead of using 14 XX 17 to load a background use a 0E command pointing to this code.

04 02 03 2D C0 0B 08 02 00 21 07 01 00 C0 7D 1C 08 03 B5 EA 0D 08 02 00 21 07 00 00 B2 7D 1C 08 21 07 01 00 B9 7D 1C 08 0F 18 XX 13 B1 7D 1C 08 18 YY 13 B1 7D 1C 08 18 ZZ 13 B1 7D 1C 08

XX - background number when user attacks
YY - background number when the opponent attacks
ZZ - background number when targeting other opponent in double battle? Not sure.

Scrolling Backgrounds

Now, I also figured out how to do the same with scrolling backgrounds. It's actually much more simple than still backgrounds, but can be applied to still backgrounds as well.

First off here is our code for the scrolling background

03 21 B9 0B 08 02 00 21 07 01 00 UU UU UU 08 14 WW 17 03 2D B8 0B 08 05 04 00 XX 00 YY ZZ 00 FF FF

UU UU UU is a pointer to 14 VV 13 TT TT TT 08
TT TT TT is a pointer to 17
VV - the background number of the BG when opponent uses attack
WW - the background number of the BG when the user attacks
XX - how fast background scrolls horizontally
YY - how fast background scrolls vertically
ZZ - either 00(scrolls right) or 01(scrolls left) but only applies to when the opponent uses the move

Note* The tricky part with this is that you can't put the code just anywhere like you can with a regular scrolling BG. This one has must go after 00 XX 27 or 00 XX 28 at some point. Usually it goes immediately after.

Still Backgrounds Version 2

Now, I found out the scrolling method after version one of the still backgrounds. Version two is pretty much the same as scrolling.

Here's the code

03 21 B9 0B 08 02 00 21 07 01 00 UU UU UU 08 14 WW 17

UU UU UU is a pointer to 14 VV 13 TT TT TT 08
TT TT TT is a pointer to 17
VV - the background number of the BG when opponent uses attack
WW - the background number of the BG when the user attacks
__________________
I support...

Last edited by dreamengine; April 27th, 2013 at 05:26 PM.
Reply With Quote