HOW TO USE: SMBX 2.0 Custom Lotus API. Now uses NPCparse.
Posted: Wed Mar 23, 2016 8:55 pm
INFORMATION
This api makes it easy to make neat bullet patterns on SMBX. It also allows you to customize the Volcano Lotus on the side.
This will get some added content and changes later, and it is still in BETA.
ESPECIALLY THE WAY THINGS ARE DRAWN WILL BE CHANGED LATER TO USE THE NEW NPC. Feel free to still play around with it though.
There are a lot of examples at the end of this post to make everything easier to use and understand. I hope the tutorials will help with that too.
Make sure to download this to your level folder, if you want to use the api. https://drive.google.com/file/d/0Bxij3Y ... mhtaVZqOWM
(Should have been with other graphics.)
SETTING EVERYTHING UP
Custom Lotus in a level
Custom Lotus in an Episode
HOW TO PLACE A CUSTOM LOTUS
[list=1][*] Select a SMW volcano lotus (npc 275) on the level Editor.
[*] Write specific IDs into the NPC TALK MESSAGE FIELD to alter the way it shoots. You can find it from "Item Properties" window on PGE, and in the NPC tab on the SMBX editor. (It's where you place the words NPC talks when you speak to it).
[*] You need to give it one of the IDs written on the npcdata.json. For example "{id='Burst'}".
[*] When you place the Volcano Lotus to the level again, it will shoot differently.[/list]
INFORMATION REGARDING THE USE OF DIFFERENT ID
ADDITIONAL FEATURES AND THINGS TO KNOW
----------------------------
THE WAY GRAPHICS ARE DONE IS SUBJECT TO CHANGE AFTER THE NEXT BETA.
HOW TO CUSTOMIZE BULLET GRAPHICS/ANIMATION.
HOW TO REPLACE THE VOLCANO LOTUS GRAPHIC.
-----------------------------
THE BIG LIST OF WORDS
------------------------------
Some words have SPECIAL VERSIONS of them.
You will need to have more than one WAVE on your pattern to use these. Add ""waves"":5" for example so that you can see the effects.
Tiny values like 0.2 and -0.02 are usually recommended while using these.
--------------------------------------
MANY EXAMPLE PATTERNS
Here are some ID for you to try and play around with. Place the ID to the TALK MESSAGE field of the SMW LAVA LOTUS before placing it somewhere. You can try changing/adding values on the JSON FILE to them to see what they do. Be careful, as too many bullets on screen will cause lag.
For example ..
{id='Palm Tree'}
...Will make the lotus to shoot that pattern.
COUPLE OF SCREENSHOTS
I hope you have fun with these codes. This api was made by Willhart.
This api makes it easy to make neat bullet patterns on SMBX. It also allows you to customize the Volcano Lotus on the side.
This will get some added content and changes later, and it is still in BETA.
ESPECIALLY THE WAY THINGS ARE DRAWN WILL BE CHANGED LATER TO USE THE NEW NPC. Feel free to still play around with it though.
There are a lot of examples at the end of this post to make everything easier to use and understand. I hope the tutorials will help with that too.
Make sure to download this to your level folder, if you want to use the api. https://drive.google.com/file/d/0Bxij3Y ... mhtaVZqOWM
(Should have been with other graphics.)
SETTING EVERYTHING UP
Custom Lotus in a level
Spoiler: show
Spoiler: show
HOW TO PLACE A CUSTOM LOTUS
[list=1][*] Select a SMW volcano lotus (npc 275) on the level Editor.
[*] Write specific IDs into the NPC TALK MESSAGE FIELD to alter the way it shoots. You can find it from "Item Properties" window on PGE, and in the NPC tab on the SMBX editor. (It's where you place the words NPC talks when you speak to it).
[*] You need to give it one of the IDs written on the npcdata.json. For example "{id='Burst'}".
[*] When you place the Volcano Lotus to the level again, it will shoot differently.[/list]
INFORMATION REGARDING THE USE OF DIFFERENT ID
Spoiler: show
Spoiler: show
THE WAY GRAPHICS ARE DONE IS SUBJECT TO CHANGE AFTER THE NEXT BETA.
HOW TO CUSTOMIZE BULLET GRAPHICS/ANIMATION.
Spoiler: show
HOW TO REPLACE THE VOLCANO LOTUS GRAPHIC.
Spoiler: show
THE BIG LIST OF WORDS
- All words here are placed to the NPCDATA.JSON file. See the "INFORMATION REGARDING THE USE OF DIFFERENT ID" part above for more details.
THE WAY THE BULLETS ARE SPAWNED by the lotus.
THE MOVEMENT OF THE BULLET after it has been spawned.Spoiler: show
Spoiler: show
THE BULLETS AIM AT THE PLAYER when spawned by the lotus.
Spoiler: show
KILL AND CONVERT THE LOTUS AND THE BULLETS with these commands
Spoiler: show
------------------------------
Some words have SPECIAL VERSIONS of them.
You will need to have more than one WAVE on your pattern to use these. Add ""waves"":5" for example so that you can see the effects.
Tiny values like 0.2 and -0.02 are usually recommended while using these.
- ADDITIVE VALUES. They will increase/decrease the value of the word by given amount FOR EACH SUCCESSIVE WAVE spawned on a cycle. D stands for Delta which means the amount changed.
Spoiler: show
MODIFY THE ADDITIVE VALUES on each successive wave. It can be used to make the base values change EXPONENTIALLY.SINE OFFSETS FOR WAVY SPAWNING:Spoiler: showSpoiler: show
MODIFY THE SINE OFFSETS FOR WAVY SPAWNING.Spoiler: show
--------------------------------------
MANY EXAMPLE PATTERNS
Here are some ID for you to try and play around with. Place the ID to the TALK MESSAGE field of the SMW LAVA LOTUS before placing it somewhere. You can try changing/adding values on the JSON FILE to them to see what they do. Be careful, as too many bullets on screen will cause lag.
For example ..
{id='Palm Tree'}
...Will make the lotus to shoot that pattern.
- Normal Volcano Lotus.
Random Regular things.Spoiler: showColors.Spoiler: showSpoiler: show
Velocity.Spawn enemies.Spoiler: showSpawn effects.Spoiler: showSpawning position with sin offsets.Spoiler: showSpoiler: show
COUPLE OF SCREENSHOTS
Spoiler: show
I hope you have fun with these codes. This api was made by Willhart.