Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics


HTML5 Visual Novel creation made easy and free · By lunafromthemoon

Random Number Generation

A topic by spritewrench created Aug 24, 2018 Views: 99 Replies: 2
Viewing posts 1 to 3

Any direction and/or plans in place for integrating random number generation?


Hello, in what way would you need the integration? If you just need a random number in a variable, you can still use any kind of javascript code to fill it in, including random number generation. Check this little example:

  - var rand: "Math.floor(Math.random()*10)"
  - text: "A random number {rand}"

This would generate a random number between 0 and 10, and put it in the variable called rand.

Hope to see your creations!

This is exactly what I was looking for!