A Beginner wanting to learn JavaScript

So, with RPG Maker MV out I've once again begun the circle of...

  1. A new RPG Maker came out!
  2. Oh boy, I want to make a game!
  3. Look at that cool [script]/[plugin]. I'm gonna try it.
  4. Hu-uh... I can't find a [script]/[plugin]. for this function I want in my game.
  5. Maybe I can learn how to program.
  6. Okay, I found some free tutorials
  7. Nice, I spent like an hour here. I don't feel like I really learned anything though.
  8. I still don't get it... maybe I'll stop making my game until I can figure out how to code.
  9. Why did this tutorial have such a high jump in complexity?! I don't get it... urgh! so Frustrated... maybe someone made a similar script.
  10. I'll lower my standards a bit and look through all the scripts...
  11. Now I've lost my motivation to work on my game...
  12. [insert anything shiny that will further distract me from game design]
  13. Return to 1.

Does that sound a bit familiar? You could probably replace this layout with Art, Music, etc. The bottom line is, I didn't stay invested in learning how to code long enough to see results. I can bring up a number of excuses, and shift the blame around, but it really just boils down to I don't fully understand how to properly motivate myself to learn a programming language.

Well, I found a resource that is working for me. It's called CodeCombat (<-clicky). It has a free website that teaches you coding via videogame. There are five languages available to choose from when you start your game.

  1. Python
  2. JavaScript
  3. CoffeeScript (A work in progress)
  4. Clojure (A work in progress)
  5. Lua
Then they will set you on a gameboard map where you can choose the first level and begin your quest. As you progress in the game, you will get equipment to wear. This equipment unlocks more commands within the language.

As an example for JavaScript, when you first start you only have a pair of shoes. These shoes give you the option to type (and thus run) the following 4 commands:

  • self.moveDown()
  • self.moveLeft()
  • self.moveRight()
  • self.moveUp()
And you use these commands to move through a spike maze with gem stones to collect along the way. It's a LOT like the custom move eventing you are already doing in RPG Maker. Except you're typing the full string instead of just clicking a button.

The game limits you severely on the number of commands you can run because it wants to do repetition. It also provides rewards for good coding (No bugs, completing the task in under [x] statements].

Give it a shot. It might be just what you need to get started, lay down a foundation of understanding and maybe spark that motivation to dig deeper and get better.

Edit - November 5th 2015

I'll keep a catalog of additional links and provide a snippet description for each one here. Thanks for sharing!

FreeCodeCamp (Multiple Languages)

(Thanks @Trilient)

Short Description: This follows a more structured routine similar to a school course. You make an account (it's free) and then choose the language you want to learn. It allows you to jump around, but you're best suited to just started at the very beginning where they teach you about inserting comments. After you run your code it'll 'check off' the objectives you met and them prompt you to go onto the next module.

It's quite in depth, but it also runs a similar vein in that it's completely up to yourself to remain motivated. The lack of color, sound, movement, etc. makes for a non-stimulating environment unless you are able to get yourself very focussed on the program. I would advice you to close ALL other distractions before starting and to refrain from opening any new tabs or windows.

If you find yourself drifting away from the program, look at how far you got before you lost attention and note what you were looking for instead (sound/music, video, social, media/news). You might be better suited to learning from sources that teach in the format you prefer best.

Codecademy (Multiple Languages)

(Thanks @Trilient)

This website produces a somewhat sluggish GUI interface to capture commands. The instructions are absolute in what they want you to type and leave little room for user error. While it was, at first, nice to get an explicit instruction on what to type... it jumped round a LOT to cover a variety of topics, and didn't really revisit previous work flows. I eventually got a bit frustrated with the GUI taking a while to load the run button and that was all that was needed for me to click the [x] button and close the program. I wouldn't advise this as an ideal starting place if you have no programming background.

Ruby Warrior (Just Ruby)

(Thanks to me!)

This is another game formatted course. Unlike CodeCombat, this website gives you virtually no support and demands you figure things out for yourself. I eventually got to level 3 before I decided to stop, but I sure as hell remember what I needed to do to get past the first 2 levels.

If you get easily frustrated, avoid this game. This is definitely for someone who likes to be challenged and learns best through experimenting through trial and error. Note: If you google the solutions, you don't really learn... instead, ask someone to help you with individual portions or to help correct your code and explain why it was wrong.
THANK YOU FOR THIS.

(I am the person you described at the top.  100%)

Thanks again.  I will give this a try.
I was already playing around with CodeCombat, and also recommend it. It's been helping me a lot as well. To add, FreeCodeCamp is another good resource, as well as Codecademy.

MV using JS as opposed to Ruby was a smart choice by the developers, especially considering that it's one of the most popular languages out there. For those of us that are new to programming, there are far more resources available to learn JS than there are for Ruby. 
Edited the original post to include the links that Trilent provided. I also added another game program for Ruby.

@byronclaude

Don't give up! Come back here every so often and sound off on what level / map you're on and if it's working for you or not.

Original thread: https://forums.rpgmakerweb.com/threads/a-beginner-wanting-to-learn-javascript.49226/