RPG Maker Forums

Hi! I'm new to RPGMV and JS but not to programming in general - lots of experience in Python and other languages. Right now I'm trying to make a script that controls the movement of several events in a city - namely, Cars. I have several of the basics hammered out (how to make them move offscreen, how the sprites are going to look, etc) but plugging it all into RPGMV is giving me some trouble.

To familiarize myself first I'm just trying to get the script to move the sprite across the screen a small distance.

 

var CarMove = Carmove || {};


CarMove.parameters = PluginManager.parameters('CarMove');


for(var x = 0; x < 10; x++){
    gameMap.event(022).moveStraight(2);
}

This is my attempt so far and it does nothing. I'm attemping to move event #022 down a few steps. Could someone explain where I'm going wrong? I apologize in advance if this is a pitiful question.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top