#9 - loading through xhr/fs, preloading images

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Hello, fellow rpg makers!

Part 9 of the tutorial series is up. In the previous video I showed how to load a custom $dataFile, but there are cases where this is not enough. So in this part I'll show you how you can manually load any file you want and I'll also demonstrate how you can make a simple, but smart enough preloading engine for images!

Required: An IDE (some of the most popular ones are Atom, Sublime text 2, Visual Studio Code (which I use) or Eclipse), some Javascript knowledge, Object oriented programming might be of help.

 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,899
Reaction score
1,030
First Language
Dutch
Primarily Uses
RMMV
nice tutorials, I hope I can create something neat or a nice and better funtional image menu.
and the ppl can use the image through the params.

My evented menu works good, but has 2 downsides I try to solve. Which I cant find a solution for it.
I hope to find around this when I watch all your videos and see what is possible ^^

Thank you for the effort in making those.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
I always say, with Javascript you can create pretty much anything :p (as long as you don't intend to fly a rocket to space :D) and given the amount of various js tools out there, the possibilities increase every day. Hopefully the language doesn't scare you off :thumbsup-left:
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,899
Reaction score
1,030
First Language
Dutch
Primarily Uses
RMMV
Not really, Its an intresting thing though. Thre is also 1 funny thing on the RPG maker FB page: "install all the plugins"
which are hundreds of them, maybe a thousand.

But the amount of usefull on is kinda amazed what you can do those days.

I hope there come some more usefull tutorials.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Thre is also 1 funny thing on the RPG maker FB page: "install all the plugins"
Well, they kind of shoot themselves in the foot here. MV as an engine is poorly optimized and bloating the main thread with hundreds of plugins only makes the problem even worse. And even though es6 has brought awesome tools - async functions and more friendly class syntax, we're not going to see these changes in MV for compatibility reasons with older plugins.
 

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

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top