- Dec 6, 2015
- Reaction score
- First Language
- Primarily Uses
0=ground, 1=player, 2=parallax, 3=shadow, 4=parallax2, 5=light/showpicture ... basically that
No just get rid of that "1", this command is for when you use the "plugin call" in the event, but here you use a MAP NOTE so the plugin already knows which map you're "talking about", it would be redundant to add the MAP ID again.Theoretically the command should be:
LAYER 2 1 UVover 0 0 250 1 0 0 0
But when I put it like this, I get an error message when starting the map (Failed to load:img/layers/1.png)
seems my plugin interprets "1" where it should be the "ID" as the "GRAPHIC".
Wow, I didn't know abou this, It's working fine now.No just get rid of that "1", this command is for when you use the "plugin call" in the event, but here you use a MAP NOTE so the plugin already knows which map you're "talking about", it would be redundant to add the MAP ID again.
@Switz I think you have to put the layer with this plugin commands, and put the CHAR to "-1" (without the quotes).
I had luck with this method for fading layers (you'll also need the plugin to allow variables to be called using "v26" method: YEP plugincmdswvar)The only way to fade layers is by changing the opacity. There are no commands for fade in/out. There is an example in the demo.
Experiment with the numbers to see where the layer appears in the Z order. Remember you can use decimal places if required.
I've got a strange issue with your plugin.
I made a 40x40 sized map with 2 layers (1st at Z=0, 2nd=overlay at Z=5). I used the water tiles to get animated water. Therefore layer 1 is below the tileset. But strange things did happen, when my character reaches the top of the map. Somehow layer 1 changes priority and covers the tileset/animated water. You can also see now that I drew the sand texture above the edges of the river. Usually this should be hidden when covered by the water tiles.
Here some pictures
I wrote the plugin commands into the map notes:
LAYER_S 1 WaldOL 0 0 255 5 0 0 0 0 0 (-> for the shadow and light overlay)
LAYER_S 0 Wald 0 0 255 0 0 0 0 0 0 (-> for the ground, that should be below the tileset)
Any idea what's the reason for this?
Thank you so much :3 Setting the z value to -1 fixed my problem.Hi!
For your own good, in the map notes, put the Layers command in order:
Layer 3... Etc.
Don't put the layer ID in 0.
Start with 1, then 2, etc.
Also on the layer for the ground, try to change the Z value for -1 instead of 0.
I'm trying to create a layer centered on player's x and y that doesn't move with the player (so CHAR = -1 doesn't work for me, as it makes the layer move with the player). The commands above create the layer. It is supossed to be created centered in the player's x and y, but instead of that it is created centered in the map's coordinates 0 (x) and 0 (y). I'd been hours looking for what I'm doing wrong, but I'm unable to find it. Can you check it out and tell me what am I doing wrong?LAYER_S v20 1 reveal v12 v13 255 200 0 0.5 0.5
var 20 = map id
var 12 = player x
var 13 = player y