DX MODDING GUIDE
  • Welcome to the DX Modding Guide!
  • File Structure
    • Folder Structure
    • Mod File
    • Metadata
  • Lua API
    • Working with GML
    • Callbacks
    • Assets
      • Sprites
      • Sounds
      • Fonts
    • Properties
    • Modcharts
    • FNFFD Functions
  • basic tutorials
    • Custom Songs
    • Example Mods
Powered by GitBook
On this page
  • scr_cbounce(firstbeat: Int,secondbeat: Int,thirdbeat: Int,fourthbeat: Int,frequency: Int)
  • scr_drawcd(x: Int, y: Int)
  • scr_charpos(badguyX: Int, badguyY: Int, playerX: Int, playerY: Int, ladyX: Int, ladyY: Int)
  1. Lua API

FNFFD Functions

these functions are directly used in base game fnffd!

scr_cbounce(firstbeat: Int,secondbeat: Int,thirdbeat: Int,fourthbeat: Int,frequency: Int)

firstbeat to fourthbeat all are the camera bounce intensity if frequency is higher than 1, camera will bounce on odd numbered beats EXAMPLE:

function onCreatePost()
    scr_cbounce(5,5,5,5,2)
end

scr_drawcd(x: Int, y: Int)

draws cd boy's body, make sure your opponent uses cd boy's head sprites for this to look normal lol

EXAMPLE:

function onCreatePost()
    scr_drawcd(170,303)
end

scr_charpos(badguyX: Int, badguyY: Int, playerX: Int, playerY: Int, ladyX: Int, ladyY: Int)

sets character positions

EXAMPLE:

function onCreatePost()
    scr_charpos(244,368,578,368,420,343) -- taken from summer lol
    -- lady's X and Y can be set to -1 to KILL her
    
    --[[
        you could also do smth like this but its your choice: 
        obj_badguy.x = 244
        obj_badguy.y = 368
    ]]--
end

PreviousModchartsNextCustom Songs

Last updated 9 months ago