Rivals of Aether

Rivals of Aether

Toon Link
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
FelixBlobDev  [udvikler] 12. juli 2020 kl. 15:35
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!
Sidst redigeret af FelixBlobDev; 13. mar. kl. 18:39
< >
Viser 1-4 af 4 kommentarer
CJ BlueThunder 26. juli 2020 kl. 14:29 
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
Sidst redigeret af CJ BlueThunder; 26. juli 2020 kl. 14:29
FelixBlobDev  [udvikler] 26. juli 2020 kl. 14:44 
@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 kl. 1:47 
Do I put these things in load.gml, init.gml, orrr..?
FelixBlobDev  [udvikler] 15. aug. 2020 kl. 5:59 
@[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.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50