Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_noisejsMod

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Provide 2d/3d perlin noise and simplex noise . Reference.

Usage
Sample capx
Noise value
Get noise value of simplex2/3, or perlin2/3 by "Expression:Simplex" or "Expression:Perlin".
  • Expression:Simplex( x, y ) : simplex2
  • Expression:Simplex( x, y, z ) : simplex3
  • Expression:Perlin( x, y ) : perlin2
  • Expression:Perlin( x, y, z ): perlin3
The input value (x,y,z) will be scaled and the result value will be mapping, see next section for more detail.
The last generated noise value will be stored in "Expression:LastNoise".
Input scaling
Input values (x, y z) will be scaled which set by property "Scale" or "Action:Set scale". For example, "Scale" = 0.002,
  • x = x * 0.002
  • y = y * 0.002
  • z = z * 0.002
Set "Scale" to 1 to ignore this feature.
Output mapping
Output value will be mapping to a range ( property "Min" , property "Max" ), or set the range by "Action:Set range of output value".
Set the range to ( -1, 1 ) to ignore this feature.
Seed
Set initial seed in properties "Seed" and "Seed random", i.e. Seed = "Seed" + "Seed random" * random()
Or change the seed by "Action:Set seed".

Save/load
This plugin supports official save/load, the seed, input scale, output mapping will be stored.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About