Help - Simple Plugin

Hi. I am very familiar with JS, but i cant seems to see where to start.

want to make a simple plugin that, during battle, whenever an enemy attacks, bounce his sprite on the screen (like, indicating his attacking)

Simple as that. But i have no idea where to start, can anyone help me out on this ? I got the overriding the standard events and calling the parent functions, but what event should i override for this ?

Thanks for any help
the problem is that the developers from rmmv does not put any api library available to study.
So you need to study with brute force and try understand what all methods should do with retro-coding.
you will need to add some console.log everywhere and try to guess the use of methods.
if you are good in js, you will probably prefer to erase most code and make your own method.
it will be much easier to understand what you are doing.

otherwise , you can take a look on the git, you have some commented version of the core engine.
but not a lot comment.

https://github.com/rpgtkoolmv/corescript/tree/master/js
but rmmv don't have api libs like
https://phaser.io/docs/2.6.2/index
So very hard to start and tell you where to start.
Oh gosh thats painfull haha

for debugging with console.log, i can check it out where ? only if i build the game ?

would u happen to know what should i be looking at my specific case ? (a small point to start looking at the core code)

Thanks for your reply btw
you can start with this list of video. [74 tutorial]
it with this one a start on my side, to understand how the rmmv libs api work.

for debugging with console.log, i can check it out where ? only if i build the game ?

In a Playtest you can press F8 to open the developer console.

would u happen to know what should i be looking at my specific case ?

You can start to look at the Scene_Battle class in rpg_scenes.js. This mostly controls the UI, windows, selecting commands, and taking in the player's input. The current scene during the battle is an instance of the Scene_Battle constructor.
Then look into the static class BattleManager in rpg_managers.js. This is where the logic and flow of the battle is maintained. Maybe it would be somewhere near the startAction() method.
Last you can look at the Sprite_Battler and Sprite_Enemy classes in rpg_sprites.js. This would control how the sprite looks on the screen. If you follow the inheritance, it inherits from PIXI.Sprite so all those methods are available too.
awesome, the code is actually simple to read, made it work already xD pretty much add a new override for the start action check if enemy and move its rendering position.

Awesome stuff, thanks guys

Original thread: https://forums.rpgmakerweb.com/threads/help-simple-plugin.95590/