JS Plugins beginner

Charles2020

Villager
Member
Joined
Feb 24, 2020
Messages
15
Reaction score
0
First Language
English
Primarily Uses
RMMV
I am a python developer but just started JS to develop JS plugin. Is there a good basic tutorial video that can help familiar with RMMV code and structure before developing plugin ?

Thanks
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
2,597
Reaction score
3,782
First Language
English
Primarily Uses
RMMV

I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.


JS by itself is a simple language, easy to understand and get used to, especially if you're already a coder and have knowledge about programming in general. I assume you know all the basic stuff like what are strings, arrays, conditionals, loops, inheritance, etc. You can do a quick course on w3schools. Here's the link:

That should be quick. After that, the real "hard" part is actually learning the RPG Maker MV engine's framework. For that maybe a more practical tutorial would help, for example someone showing how to code a menu in RPG Maker. But basically, RPG Maker is formed by a couple of main objects from which all other objects are derived:
  • Window_Base: it's the parent object of all window objects in the engine.
  • Sprite_Base: It's the parent object of all sprite objects in the engine.
  • Scene_Base: It's the parent object of all scenes in the engine.
  • Graphics: Handles the graphics.
  • AudioManager: Handles all the audio.
  • ImageManager: Handles all the loading of images into ram.
  • SceneManager: Controls the displayed scene on the screen (you basically push scene objects inside it).
  • Input: Manages all the inputs.
  • etc.
I listed a couple, but once you get a hang of the general logic of the engine it's really easy to just open the core code and understand how it works.

Hope that helps.
 

ozubon

game chef *muah*
Veteran
Joined
Oct 16, 2018
Messages
42
Reaction score
28
First Language
English
Primarily Uses
RMMV
Something that really helped me get familiar with the engine is trying things in the console during playtest. If you bring up the console and type for example $gameMap. or Graphics. (with the dots), without pressing enter, you get a list of all the objects beloning to that main object. So it's really easy to find settings and test them on the spot. To get a list of all the main objects and functions in the game, just type window. (dot included). Many of them have their own objects so try them with a dot to see what comes up. Altering them in the console doesn't change the files so you can go wild and test things to your heart's content.
 

Felski

Veteran
Veteran
Joined
Jan 5, 2018
Messages
83
Reaction score
71
First Language
german
Primarily Uses
Other
Another good starting point is to look for plugins other people created that somewhat do what you want to do and then debug the plugins and see what happens.
I also really liked SRDs youtube tutorial on how to create a plugin:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Kraken Art By @whtdragon

- For the No Travel Game Jam -
Yay! One of my Youtube videos got to 100 views (in 2 days)! This Youtube thing is great, it's like the profile posts except I get to annoy entertain more people at once! Now I just have to practice my "Leave a like and hit that Subscribe button" shilling technique. :LZSexcite:
Just found out there is an about me page. I updated it and happy the way its looking!
Ladies and Gentlemen, I can't act like things will be ok anymore. It needs to be said: We have a Pandemic...
Release version of Pillow Hero is out on windows now! --> https://bit.ly/2USHKLv

Forum statistics

Threads
95,558
Messages
930,091
Members
125,846
Latest member
StormyRange
Top