Golden Sun Hacking Community
March 18, 2018, 02:06:53 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home   Forum   DC Wiki Help Search Calendar Downloads Login Register  
Pages: [1]   Go Down
Author Topic: Transparency and Fading Effects  (Read 656 times)
0 Members and 1 Guest are viewing this topic.
His Sexiness
Mercury Clan

Oh yeah, baby!


Coins: 32
Offline Offline

I am: A part of the organization of Cool Cats, but more of a dog person in reality.
Emblems: Have a nice day.
Posts: 4565

« on: May 27, 2015, 02:46:53 AM »

So yeah. I've basically decided to start looking into some of the ways that GS2 utilizes transparency and stuff. For those who don't know, the GBA has some native semi-transparency, alpha blending, and brightness features that pretty much any game can utilize (more on that at GBATEK).

I also felt like making a little post about something neat I found about semi-transparency during battle. As of today, I have made note of a couple functions that deal with it, and have toyed around with the feature a bit. Looking at one function in particular that feels wildly inefficient, so I wouldn't mind shortening it a bit with the intention of maybe adding something cool to it later. Also found a couple RAM values that are pretty interesting.

A: The first is a counter. Not terribly interesting on its own, but it increases and/or loops depending on the next value. Located at #020306C2.

B: Whatever this value is will change how blending effects are applied to PC/enemy sprites in battle. Located at #020306C4. These values are:
0 - Starts off with this, no effects are applied.
1 (or anything other than 0, 2, 4, 6) - Current unit/target sprite blinks white.
2 - All not-currently-selected sprites fade in and out, including PC portrait in lower left.
4 - As the counter increases, every not-currently-selected sprite fades until they are completely invisible; setting the counter back to a lower level will fade them back in.
6 - In menus; all not-currently-selected sprites are translucent. When selecting target; all not-currently-selected sprites completely invisible.

As far as I can tell, only 0 and 1 seem to be used most of the time.

Oh yeah. I was also hoping to find out if anyone knows of any instances outside of battle where transparency is applied specifically to object sprites rather than background layers. I think the lighthouse beacons might use it when initially lighting them, but beyond that I can't think of any. I'm doing research for reasons, so any other info I can get would help me tremendously.

Oh yeah baby, £ me harder.

Fusion is just a cheap tactic to make weak Adepts stronger.

Yoshi's Lighthouse is a hacking website in progress. Why not check it out if you like Yoshi or the Mario & Luigi games?
View Profile WWW
Pages: [1]   Go Up
Jump to:  

March 12, 2018, 02:21:06 AM
Fox: say*
March 12, 2018, 02:20:53 AM
Fox: I saw we need an event this April Fools/Easter... because two holidays are in one, why would we not want to miss having something special? (Unfortunately, there's no one here to make an event be successful.)
March 12, 2018, 02:18:17 AM
Fox: And since that's the case...  I have thought of another fun experiment idea. - What if we had an auction on who should run this site, and waited for 10 people to bid and also for a bare minimum of 24 hours. Who would bid the highest, and how much would that bid be? - The idea is more for lulz (Maybe for April Fools?), and a theory to get an idea of how much the site might be worth as well.
March 11, 2018, 03:02:31 AM
Fox: Creepy, isn't it?
March 10, 2018, 02:19:04 AM
Fox: It's frog legs now.. It's something that's dead, but somehow still manages to wiggle.
March 09, 2018, 04:12:17 AM
JamietheFlameUser: I think this place is still dead.
March 02, 2018, 09:43:18 AM
Pkmn-Master: Lol I haven't been here in like 6 years. How is everyone?
February 26, 2018, 06:15:34 AM
Salanewt: Heads up: I finally finished the Wisp animation hack, and it has been posted in the downloads section.
February 19, 2018, 09:50:20 PM
KyleRunner: "difficult thing about the army": I'm very good at taking orders, so I don't have issues with autority or discipline. The most difficult thing is to be away from my family sometimes. I lived an entire year away from my son, so I'd say that was the most hard part by far. Now it's great!
February 19, 2018, 05:51:35 AM
Fox: I'm happy to see we have plenty of people serving the country here. :)
February 19, 2018, 05:47:15 AM
Fox: Civilian here.
February 19, 2018, 03:05:38 AM
Majora: Good for you, something to be proud of. Air Force, here
February 19, 2018, 02:11:31 AM
Fox: That's good to hear... just checking if there were any possibility of doubt. What would you say was your most difficult thing about the army?
February 18, 2018, 12:39:38 PM
KyleRunner: Well, it was a destiny kinda thing, but I was very happy when I decided to join. It was just like I thought it would be (not in the beginning, though). I'm very pleased with my decision.
February 17, 2018, 11:32:41 PM
Fox: That's awesome!  Trying to figure what question I want to ask Something about how you felt when you made the decision to do the army, and whether it was different than your expectations/etc.
February 17, 2018, 01:53:41 PM
KyleRunner: Wow... My english got rusty. Anyway... I'm in the army now. My life turned 180. But I think it was for the best.
February 16, 2018, 12:45:45 AM
Fox: Hm? So where does that make you today?
February 16, 2018, 12:06:38 AM
KyleRunner: Five years ago I could not even imagine where I am today. I hope it works well for you too!
February 12, 2018, 07:22:50 PM
Fox: 2018 - The year that I will probably be working a manufacturing job. xP What would I have thought, if I told myself this five years ago. Eh?
January 28, 2018, 08:35:28 PM
Fox: You referring to changing the PC/leader sprite to someone else? - I forgot to mention that you can do this using VBA's memory viewer. (Found under Tools.)

Temple of Kraden Golden Sunrise
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.043 seconds with 22 queries.