Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Could you give some clearer instructions? (Yes I'm here.)

A topic by ittababy created Jun 07, 2020 Views: 587 Replies: 17
Viewing posts 1 to 16

You wrote down how to set it up but not how to make it GO.  Where's the on button?

Developer

Iirc you'd use JM_EBB.setConfiguration("<name of the configuration>") right before you start the battle. Let me double check that, but that should work.

Developer

Yup, the most basic form is simply JM_EBB.setConfiguration("<name of configuration>") in a script right before a battle.

Developer

I should quickly write up an API doc sometime...

thanks

Error time:
Cannot read property 'setConfiguration' of undefined

Developer (1 edit)

Hmm, that's weird, let me check my examples.

Nope, ignore this. JM_EBB should work. Let me double-check something else.

Developer

What scripts are you using? Could you screenshot the scripts window with JM_EarthboundBackgrounds on it?

Developer

That is really strange. Could I also see the event where you are calling the script?

(1 edit)

Sorry I took so long, my computer broke and I had to fix it :V

Developer

you should use the name of a configuration inside "jm_ebb_city.hjsn". I'm actually confused why JM_EBB doesn't work.

...inside?

What do you mean, it IS the config.

Developer

The config *file* should contain a JSON object that contains various configuration objects. setConfiguration takes one of the keys/names in the top-level object for the desired configuration object that one wants to run.

can I get a screenshot of a properly working event?

I tried to use the example but it doesn't work either
I have no idea how to run it, man

Help please

What the example contains is:

{
    "layers": [
        {
            "image": "000",
            "image_mode": "stretched",
            "palette_shift": 0
        },
        {
            "image": "009",
            "image_mode": "tiled",
            "effect": {
                "type": "horizontal_interlaced",
                "amplitude": 256,
                "frequency": 3
            },
            "palette_shift": 2,
            "scroll": [0, 1]
        }
    ],
    "configurations": {
        "alta": [1, 0],
        "default": {
            "layers": [1, 0],
            "speed": 2
        }
    }
}
Developer (1 edit)

So to call the script you would for example use: `JM_EBB.setConfiguration("default")` or `JM_EBB.setConfiguration("alta")`

That is literally all my script call is doing.