forked from Leather128/LeatherEngine
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3881910
commit a214b7e
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a214b7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where runHaxeCode func i need it so bad rn
a214b7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never use hscript like a normal person
a214b7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea i just noticed it has hscript now but i have no idea how to use it. looking at the source code i can see that i can put .hx classes in some folders and they will run but how does that work and what would i need to write for something like scroll seed increase on player note hit for example?
a214b7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can put any hscript file(.hx) in any folder that you can put lua in
data/scripts/local, data/scripts/global etc but you can also put it in the classes folder to modify other states and write your own too.
All the functions from lua can be called in hscript so if for example you wanted to, like you said increase scroll speed after a note is hit you could do so like
a214b7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats sick, thanks