Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map initialization routines #133

Open
melody-rs opened this issue Jun 27, 2024 · 2 comments
Open

Map initialization routines #133

melody-rs opened this issue Jun 27, 2024 · 2 comments
Labels
enhancement New feature or request extension

Comments

@melody-rs
Copy link
Member

melody-rs commented Jun 27, 2024

Is your feature request related to a problem? Please describe.
It's pretty useful to run event commands when a map is first loaded. Fading Memory does this to add particles and set map backgrounds.

Describe the solution you'd like
Add support for a "map initialization routine": a set of event commands attached to a map that are automatically run when loaded. See #134 for enabling this feature

Describe alternatives you've considered
Currently, the easiest way to do this is to add an autorun event that deletes itself after it finishes processing. This isn't perfect though, the event isn't guaranteed to run immediately and may execute over a couple of frames.

@melody-rs melody-rs added enhancement New feature or request extension labels Jun 27, 2024
@zimberzimber
Copy link
Member

This doesn't necessarily need any script changes if you are to treat it as just another event.
Could use a convention for the event's name the editor would look for.

@melody-rs
Copy link
Member Author

That could work, but it'd have the exact same caveats as the autorun event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request extension
Projects
None yet
Development

No branches or pull requests

2 participants