-
Notifications
You must be signed in to change notification settings - Fork 7
Haxe Script API: Event Callbacks ‐ Dynamic Callbacks
Dynamic callbacks are a special unqiue callbacks that are only exclusive to HScripts entirely. They have the ability to override the original functionality of the callback. Meaning you can change the callback functionality with your own custom functionality. You can do this by utilizing the dynamic callback that you're using and reassigning it with its new functions content, with its given parameters if included.
Example:
Instead of updating the positions depending on the health. The icons will now update on these positions and stay static. You can even make the function empty if you don't want it to do anything.
function onCreatePost() {
game.updateIconsPosition = function() {
game.iconP1.x = 314;
game.iconP2.x = 114;
}
}
Updates every score rating calculations, such as hitting or missing notes.
-
miss
- An optional parameter, whether the player misses a note or not.
Updates the icon scaling on each beat from both the player and opponent.
Updates the icon positions from both the player and opponent.
Updates the current score text content when changing any of its rating calculations, that's it.
Updates the current score rating combo names.
Is the page in some way inaccurate? an error, a typo, or outdated data? To report it, use the "Issue Tab". Or do you wish to include a new function or add new information? use the "Pull Request Tab". Help is always appreciated!
- Event Callbacks
- Custom Sprite
- Custom Text
- Object Functions
- General Functions
- Scripting & File Functions
- Game Input Control Functions
- Language Translation
- HScript Functions
- Custom Substates
- Custom Shaders
- Deprecated & Removed Functions
- Sound & Music Functions
- Tweens & Timers Functions
- Reflection Functions
- Variables