In this Doc, I will show you how to use my MMO Engine in detail so you can save some headaches for a more critical thing like telling your siblings not to eat your precious cupcakes(which is impossible).
MMO Engine V2 by @Fath11 /Scratch project hosted on Cocrea.
MMO engine for Platformer and RPG game in Gandi IDE! Hosted on Cocrea.world, powered by Gandi IDE.
The latest version of MMO Engine(MMO Engine V2) has four modules, but you only need to know three.
• Property that will make determent what the game is.
• Property that will be used for the player regardless of the game setup to determent what the player will do.
🧱 Platformer setup
• Property that is specific to the platformer game setup and will not be used by other game setup configurations.
• Everything that starts with “__” is the blocks/variables/lists used to make the engine work. • These blocks are optional for you to know.
Functions and definitions
🕹️ Game setup
You can use this block to tell the game the current game mode. There are two game modes that you can choose from,
- Platformer, by typing in 1 in the input box on the right
- RPG, by typing in 2 in the input box on the right
In the future, this engine will include more game modes, such as a scrolling game.
You use this block to set the server id of your game.
🎭 Player Setup
This block sets your player's extra data. Extra data can be used to store unique properties like the player's color or the player's animation frame.
I set the player's extra data to 🌈Color, and with the help of the Player's special property block, I can store the extra data globally.
The result is that players can customize their color, which will update in real time!
These blocks can assign a unique property(that needs to be updated in real-time for others) to the player.
Example of it I have shown above but you can do a lot more, like, add attack animation to the player that will automatically be updated for the other players.
Another example is,
Inside the Animation frame block, you can add a key to switch the player costume to its attack animation. Then it will call the Player setup block, which will update your costume for every player online so everyone knows that you just attacked someone!
This block is for Platformer and RPG Game mode. It is used to set the player's speed
🧱 Platformer Setup
These three blocks are used to set the different properties inside this engine's Platformer Code.
There are three kinds:
- How high the slope can be until the player can no longer climb it.
- Determine how much friction the player will experience.
- Determine how high the player can jump.
🚂 Engine Code
The engine’s platformer code uses these blocks to work.
The __RPG movement script contains the controls for the actual RPG script in __Try move……forgive me, I done no sins…
This block is used to clone every online player once you join.
The block above contains your codes.
The code looks like this inside the engine.
Of course, you can change it to your liking.
This engine will update over time. As of right now, there isn’t much to it. But in the future, I plan to allow everyone to create any game with this engine regardless of the complexity.
Even tho it will take a long time, and even if development seems to stop, believe me, I will not stop until I am satisfied with it.
Please note that Get.Gandi version of this doc will take longer to update than the actual engine, so please be patient. You can always go to the Google Docs version by going to the MMO Engine page, where this will be shared.