Preaching Functions - VsFoxaTeam/FNF-Unfulfilled-Journey-Foxa-Engine GitHub Wiki
Note: It's highly recommended that you use this function onCreate()
callback. These functions are mainly used for avoiding a massive game freeze when an asset first gets used.
Will precache the character, can be used when using triggerEvent()
on the Change Character
.
-
name
- The character name to be used, example:pico-player
,mom-car
,gf
, etc. -
type
- the character type to be used, can be eitherboyfriend
,dad
, orgf
.
Will precache the sound. (MUST BE .OGG FORMAT)
-
name
- The sound tag or object variable name, Should be located insidemods/sounds/
orassets/sounds/
.
Will precache the music. (MUST BE .OGG FORMAT)
-
name
- The music tag or object variable name, Should be located insidemods/sounds/
orassets/sounds/
.
Note: For now precacheImage()
is only capable of precaching images inside mods/
!
Will precache the image. (MUST BE .PNG FORMAT)
-
name
- The sprite tag or object variable name, Should be located insidemods/images/
.