Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I tried using the script:

vn 1

light create 5 20 0 256 255 0 0

there is this in the manual but it doesn't work

---------------------------------------------------------------------------------

light create [tileX] [tileY] [tileZ] [radius] [r] [g] [b] - creates a light source at tile coordinates (as shown in map editor) with your own preferences.

light move [tileX] [tileY] [tileZ] [offsetX] [offsetY] [offsetZ] - shifts any light source.

light status [on/off] [tileX] [tileY] [tileZ] - turns on/off any light source.

-------------------------------------------------------------------------------------

I also noticed that light move does not work, --- example: [offsetX] 1 to [offsetX] 2 (he makes almost no movement), but [offsetX] 64 (moves light about one block)

Y is not horizontal. Y is the number of floor

(1 edit)

when I use it on the light that is on given on the map editor, it stops shining

light status off 3 20 0 (photo)

----------

but i tried to create a light and it doesn't do anything (I tried multiple options)

light create 5 20 0 256 255 0 0

light create 5 0 20 256 255 0 0

light create 5 1 20 256 255 0 0

light create 5 20 1 256 255 0 0



I don't really remember it but it might be that coordinates are not in tiles but in proper coordinates and you'll have to multiply your values by 64

I found out that the light is created but only decorations and enemies light up

If radius of light is small, pixel shaders are disabled and lighting settings is set to 1, this might happen.