Define Variable

From LuaSTG Wiki
Jump to navigation Jump to search
Define Variable
Variable.png
Define Variable Icon
Location Task Tab

Usage[edit | edit source]

Define Variable is a function that allows you to substitute number or code with a variable.

This can be used in a multitude of ways, such may be:

  • The distance of a player to the boss.
  • Managing a large amount of bullet spawner parameters such as angle, velocity, etc.
  • Setting spawn positions for enemies.
This is one way of using define variables.

Attention[edit | edit source]

If a define variable is located within a Code Block, then it will only affect the functions within.


Extra Information[edit | edit source]

If you want to find math functions to use, you can use the lua-users wiki.

There is also the APIManuel.MD that you get from the Unofficial English Version of LuaSTG+ which contains some other functions you can use.

To see more about General stuff, go to Functions.