- Joined
- Dec 11, 2016
- Messages
- 1
- Reaction score
- 0
- First Language
- English
- Primarily Uses
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.
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.
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.

