Rivals of Aether

Rivals of Aether

Toon Link
 This topic has been pinned, so it's probably important
FelixBlobDev  [developer] 12 Jul, 2020 @ 3:35pm
Pictograph Support Guide
If you’re interested in implementing pictograph support for your character, here’s how to do it. I’ll try explaining each step below.

Setting it up
The first step is to set up the variables you need. There are 3 different ones, and they should be in your characters init.gml file. It may look kind of like this:
toonlink_photo = sprite_get("toonlink_photo");
toonlink_photo2 = sprite_get("toonlink_photo_TL");
toonlink_photo_bg = sprite_get("toonlink_photo_bg");

The first (toonlink_photo) is your character (and your background if you prefer having it on 1 sprite). The second one (toonlink_photo2) is Toon Link himself, and can be either a custom sprite or a built-in one (further explained below). While the third (toonlink_photo_bg) is newer custom background option, completely optional and is drawn below the other two.

Your Character
Next you need to create the photo! This image should be 100x62 pixels (it will be 200x124 after you scale it up by x2). Here is a base you can use![i.imgur.com]

Ideally, your character should be on the opposite of Toon Link so they're visible (by default this is the left side), and can have some kind of background if you'd like (you can also separate the background if preferred, but we'll get back to that later)
Also make sure your character has the exact same colors as their other sprites, if not they might look weird when using alt colors!

Toon Link
In front of your character, there’s Toon Link holding the camera. There are two ways to use the toonlink_photo2 variable:
  • Create your own Toon Link drawing, and put toonlink_photo2 = sprite_get("toonlink_photo_TL"). With the proper sprite size and filename this should work by default. The size of this sprite is the exact same as the background one, at 100x62 (200x124 at 2x size).
  • Use one of the built-in Toon Link sprites. To do this you simply put toonlink_photo2 = 0; instead (replace the 0 with any number available).
    Here's which one each number corresponds to.[i.imgur.com]

The Background
You can simply put your background on the same sprite as your character if you'd like, but if you prefer to separate it (to avoid recoloring issues or other reasons), a special background option does exist!
To use it, you'd use the 'toonlink_photo_bg' option. This is the same as other sprites, but should contain just the background and will be drawn below the other sprites.

If you followed every step correctly, your character should be able to take a photo with Toon Link. I hope this helps!
Last edited by FelixBlobDev; 13 Mar @ 6:39pm
< >
Showing 1-4 of 4 comments
CJ BlueThunder 26 Jul, 2020 @ 2:29pm 
I can't get it to work for some reason, I am putting in the code but it won't work and I have no clue why
Last edited by CJ BlueThunder; 26 Jul, 2020 @ 2:29pm
FelixBlobDev  [developer] 26 Jul, 2020 @ 2:44pm 
@themarblefamily I can't help without seeing the code or knowing the context, but I could try to help. Can you show your code and where you use it?
WINDYCASTER 15 Aug, 2020 @ 1:47am 
Do I put these things in load.gml, init.gml, orrr..?
FelixBlobDev  [developer] 15 Aug, 2020 @ 5:59am 
@[C.S.] scarletwing74
The guide mentions where to put it (under the "Setting it up" section), but yeah you'd put the variables in Init.gml.
< >
Showing 1-4 of 4 comments
Per page: 1530 50