Logo
  • Features
  • Educators
  • What's New
  • Blog
  • Showcase
  • About us
  • Contact
Try it now!
Fath11’s MMO Engine Tutorial
🌐

Fath11’s MMO Engine Tutorial

✍️
This best practice is created by fath11 from Gandi IDE community.
image

fath11 YouTube channel: https://www.youtube.com/@fath11encoded/featured

fath11 Cocrea: https://cocrea.world/@Fath11

fath11 Scratch account: https://scratch.mit.edu/users/fath11/

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.

cocrea.world

MMO Engine V2 by @Fath11 /Scratch project hosted on Cocrea.

Modules

The latest version of MMO Engine(MMO Engine V2) has four modules, but you only need to know three.

Modules
Description
🕹️Game setup
• Property that will make determent what the game is.
🎭 Player
• 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.
🚂Engine code
• 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

image

You can use this block to tell the game the current game mode. There are two game modes that you can choose from,

  1. Platformer, by typing in 1 in the input box on the right

And

  1. 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.

image

You use this block to set the server id of your game.

🎭 Player Setup

image

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.

For example,

image
image

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.

image

The result is that players can customize their color, which will update in real time!

image
image

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,

image
image

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!

image

This block is for Platformer and RPG Game mode. It is used to set the player's speed

🧱 Platformer Setup

image

These three blocks are used to set the different properties inside this engine's Platformer Code.

There are three kinds:

  1. ↗️Slope
    • How high the slope can be until the player can no longer climb it.
  2. 🥾 Friction
    • Determine how much friction the player will experience.
  3. 🦘 Jump Height
    • Determine how high the player can jump.

🚂 Engine Code

image

The engine’s platformer code uses these blocks to work.

image

The __RPG movement script contains the controls for the actual RPG script in __Try move…🫥…forgive me, I done no sins…

image

This block is used to clone every online player once you join.

image

The block above contains your codes.

The code looks like this inside the engine.

image

Of course, you can change it to your liking.

Notice

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.

💡
If you have any questions or suggestions, you can find us in the discord channel: https://discord.gg/U3nyveCvRa
Logo

Designed by 2ndR with love

Discord