VPX Documentation

Spinner

2min
variables variables are items in vpx you can set, adjust or call call detail example name(string) x(float) y(float) timerenabled(bool) timerinterval(int) set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, 1 makes it dependent on the fps that a user can reach) length(float) rotation(float) height(float) damping(float) 0 1 image(string) material(string) surface(float) uservalue(any) can store any user defined value for re use later on showbracket(bool) anglemax(float) anglemin(float) elasticity(float) visible(bool) currentangle(float) only readable reflectionenabled(bool) default=true events event detail example init called when item initialized , geenerally in table/game init timer used to interact with the spinners timer event spin when spinner has spun sub myspinner spin 'do something end sub eos at the end of the spin bos at the beginning of the spin