Properties
setProperty(property: String, value: Dynamic)
quickly sets a property in obj_song
EXAMPLE:
function onCreatePost()
-- alternative to obj_song.ntsc = true
setProperty(“ntsc”,true) -- enables the ntsc filter from the bonus songs
endgetProperty(property: String)
returns a property from obj_song EXAMPLE:
function onCreatePost()
show_message(getProperty(”ntsc”)) -- gets if the NTSC filter is enabled
endsetUIProperty(uipart: String, property: String, value: Dynamic)
sets a part of the ui's property EXAMPLE:
function onCreatePost()
setUIProperty(”scoretext”,”shown”,false) -- hides the score text
endgetUIProperty(uipart: String, property: String)
sets a part of the ui's property EXAMPLE:
function onCreatePost()
show_message(getUIProperty(”scoretext”,”xpos”)) -- would return scoretxt's xposition
endNotable Properties
Song Variables
misses- current amount of missesaccuracy- current accuracycoolscore- current scoreskill- current health (0 is full health, 100 is no health)bpm- bpm
Gameplay Variables
skipCountdown- skips countdown if trueghosttap- enables ghost tapping if true
Visual Effects
ntsc- adds the filter from the bonus songs if truescreenborder- adds the vignette from weeknd 4 if true
Misc Variables
houtline- healthbar outlinehplayer- player hp bar colourhbaddie- badguy hp bar colourfoutline- flowbar outline colourfback- flowbar bg colourffull- flowbar fill colourbaddieiconandplayericon- player icons (set them to a sprite and they'll change)
UI Properties
(these only work with setUIProperty and getUIProperty)
scoretext
xpos: Int
ypos: Int
scalex: Int (offsets scale)
scaley: Int (offsets scale)
font: Font
shown: Bool
healthbar
xpos: Int
ypos: Int
scalex: Int
scaley: Int
shown: Bool
flowbar
xpos: Int
ypos: Int
scalex: Int
scaley: Int
shown: Bool
Last updated