I'm trying to implement this plugin so that my character can slash at events and cause damage on collision, but I'm having trouble with the code (still new to Javascript).
What I've done:
- I created a sword-slashing animation that is listed as a common and event, and pressing "A" will trigger the animation. This works.
- I created a simple event (EV030) with a Bat as the image and told it to approach the Player. This works.
- In the bat event, I created an 'if' call with $gamePlayer.collidesWith(EV030) as the condition. The event trigger is set to Player Touch. When I interact with the bat event in-game, This results in ERROR: EV030 not defined. I believe the error shows up when the event is activated, regardless of any 'slashing'.
The $gamePlayer is properly defined (I looked in the rpg_sprites.js to find the player's proper name). How do I find the name of the bat event? Or does it even qualify as a sprite that works with this plugin? I tried the traditional event name (EV030) with and without $ in front, but neither worked.
And (not to overload this post with questions, but...) will my common event animation trigger this event?

What I've done:
- I created a sword-slashing animation that is listed as a common and event, and pressing "A" will trigger the animation. This works.
- I created a simple event (EV030) with a Bat as the image and told it to approach the Player. This works.
- In the bat event, I created an 'if' call with $gamePlayer.collidesWith(EV030) as the condition. The event trigger is set to Player Touch. When I interact with the bat event in-game, This results in ERROR: EV030 not defined. I believe the error shows up when the event is activated, regardless of any 'slashing'.
The $gamePlayer is properly defined (I looked in the rpg_sprites.js to find the player's proper name). How do I find the name of the bat event? Or does it even qualify as a sprite that works with this plugin? I tried the traditional event name (EV030) with and without $ in front, but neither worked.
And (not to overload this post with questions, but...) will my common event animation trigger this event?

Attachments
-
255.5 KB Views: 3