Modding > Spelunky 2 > Button Prompts
- By:
- JayTheBusinessGoose
- Downloads:
- 27
- Mod Type:
- Library
- Added:
- 4 years, 10 months ago
- Last Update:
- 2 years, 3 months ago
- Average Rating:
Details
Note: This is not a standalone mod. This library is meant to be used to build a mod.
To keep current with updates, clone the repo at: https://github.com/jaythebusinessgoose/ButtonPrompts
git clone --recurse-submodules https://github.com/jaythebusinessgoose/ButtonPromptsCheck out the README for more information about usage and additional configuration/features.
ButtonPrompts
Attach button prompts to entities to inform the player that an action will occur when pressing the interact button.
spawn_button_prompt_on
Use the
spawn_button_prompt_onmethod to spawn a button prompt attached to a specific entity. When the entity moves, the prompt will move along with it. If the entity is destroyed, the prompt will be destroyed as well.The method takes two parameters:
- prompt_type: Determines the icon that will be displayed with the prompt.
- on_entity_uid: UID of the entity that the prompt should be attached to.spawn_button_prompt
Use the
spawn_button_promptmethod to spawn a button prompt at a specific location. The spawned prompt
will have gravity, so will fall if placed in the air or if the tile it is on breaks.The method takes four parameters:
- prompt_type: Determines the icon that will be displayed with the prompt.
- x, y, layer: The position that the prompt should be spawned at.PROMPT_TYPE
There are four prompt types:
- DOOR
- INTERACT
- VIEW
- SPEECH
Downloads
Latest Download
| Downloads | Name | Uploaded | |
|---|---|---|---|
| 20 | ButtonPrompts.zip | 2 years, 3 months ago |
Past Downloads (1)
| Downloads | Name | Uploaded | |
|---|---|---|---|
| 7 | ButtonPrompts.zip | 4 years, 10 months ago |
Comments (0)
Please log in to leave a comment.