What can I do/what do I need to learn to start preparing for JS scripting?

Malzir

Villager
Member
Joined
Dec 7, 2012
Messages
23
Reaction score
4
First Language
English
I'm not sure if this was the best place to put this but I really would like some advise.

I am a web developer and I have been using JS in web dev for the past few years and after tje announcement that MV will use JS scripting I'm very excited to try my hand at it (since I never had a chance to learn Ruby).

My question then is how different will the javascript coding be and what additional javascript should I be practicing/learning in preperation for MV scripting from your typical web dev javascript? My personal experience is with jQuery, bootstrap etc.

Also, I know we haven't seen the MV framework yet but is there anything I can do in advance to start preparing? I was thinking of playing around with javascript canvas.

Thanks in advance!
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,549
Reaction score
16,440
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.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,608
Reaction score
3,887
First Language
Java's Crypt
Primarily Uses
RMMZ
Also, I know we haven't seen the MV framework yet but is there anything I can do in advance to start preparing? I was thinking of playing around with javascript canvas.

Thanks in advance!
You may want to take a look at this: http://www.pixijs.com/

Other than that, you'll need to wait for MV to come out to learn it's standard functions and classes. There is one big difference between creating a script for rpg maker and working on a project in the language itself:

Instead of writing new code, you'll usually be changing existing functions to something else or something more. So things like this should be quite common:

Code:
var oldFunction = Game_Actor.prototype.moveStraight;Game_Actor.prototype.moveStraight = function(direction) {  var another_direction = 2;  oldFunction.call(this, another_direction);};
 

Malzir

Villager
Member
Joined
Dec 7, 2012
Messages
23
Reaction score
4
First Language
English
That looks great. I will check out pixijs.com once I get home.

Thanks for the function example. Looks like after we get access to the help file and functions and classes it should not be too bad to start modifying things.

PS: Sorry for posting in the wrong forum, I did scan through the forum to find a more relevant one but completely missed this one it seems.
 
Last edited by a moderator:

Ellie Jane

Veteran
Veteran
Joined
Mar 17, 2012
Messages
782
Reaction score
1,558
First Language
English (UK)
Primarily Uses
RMMV
Working through W3Schools will help greatly, it's a kind of web standard for JS learning. It's a base not a fully encompassing guide though.
 

DarknessFalls

Rpg Maker Jesus - JS Dev.
Veteran
Joined
Jun 7, 2013
Messages
1,393
Reaction score
210
First Language
English
W3Schools will not help. it is severly out dated and the basics are riddled with errors and inconsistencies and teach you really bad habbits. I suggest learning an actual javascript framework and applying it to real world examples instead of "look mom I made an alert box"
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,921
First Language
English
W3Schools will not help. it is severly out dated and the basics are riddled with errors and inconsistencies and teach you really bad habbits. I suggest learning an actual javascript framework and applying it to real world examples instead of "look mom I made an alert box"
Learning a javascript framework would probably require someone to learn javascript first? Unless there are frameworks that assume you are a complete beginner and will give you tutorials on how to JS?
 

Malzir

Villager
Member
Joined
Dec 7, 2012
Messages
23
Reaction score
4
First Language
English
I've personally been using JS for years in web development.

I'm used to jQuery but I expect it's not suitable for RMMV / game development so I was looking for advice more for breaking into that side of things.
 

Latest Threads

Latest Posts

Latest Profile Posts

Calibrating the timing of dialogue is deffo my new least favorite thing.
I died aged 27 to cancer. Then I was reborn in a South-American state. I retained all memories and skill and had a goal from my previous life I needed to finish, but now I was just a 1-year-old girl capable of only smiling at others.

Dreams like this one make me glad I'm able to wake up from them at will.
Found a critical bug the other day with the time system that would have caused none of the NPCs to spawn. Since I use dev mode to test time-based stuff, I didn't catch this for way too long!
Last missing piece, a plugin to let weapons and armor be used as multiple equip types
What if the Actor Battlers disappeared when your selecting enemies...
ndyhHXV.gif

Forum statistics

Threads
129,976
Messages
1,206,660
Members
171,198
Latest member
DonHazzy
Top