RMMV Changing Enemy sprites with YED Sideview Battler...

Status
Not open for further replies.

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
420
Reaction score
837
First Language
English
Primarily Uses
RMMV
https://forums.rpgmakerweb.com/inde...view-battler-change-sprite-mid-battle.111677/

so I was trying to transform one of my enemies and tried the same method here in this topic, except I tried it with enemy end of it. I had this essentially...

if (this.isEnemy()) {
if (this.isStateAffected(YOUR STATE ID)) {
battler = $dataEnemies[ENEMY ID];
} else {
battler = this.enemy();
}
}

but unlike doing it for actors, which works easily as described in the other topic... it doesn't seem to do the same thing for enemies.

I also tried http://www.yanfly.moe/wiki/Enemy_Transformations_(MV_Plugin_Tips_&_Tricks) but for some reason when it transforms into the next enemy, it displays all the frames and doesn't animate it properly. oh and lastly of course I tried default enemy transformation and that just throws an error with http://www.yanfly.moe/wiki/Animated_Sideview_Enemies_(YEP)

so unfortunately, I'm not quite sure what to try next here... if anyone has any suggestions, I'm all ears. thanks everyone.
 
Last edited:

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
420
Reaction score
837
First Language
English
Primarily Uses
RMMV

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,746
Reaction score
1,613
First Language
English
Primarily Uses
RMMV
Why do you need both YED Sideview Battlers and Yanfly Animated Sideview Enemies? That could well be what caused the Yanfly Tip to not work correctly.

And in the other topic you never got this code working, so why do you think it would work in this instance?

What error do you get when you use the built-in transformation command?
 

MarxMayhem

Veteran
Veteran
Joined
Apr 17, 2020
Messages
70
Reaction score
37
First Language
Filipino
Primarily Uses
RMMV
Are you using a custom spritesheet for enemies too? If so, you may want to look at this post for assistance. I haven't tried it yet, but it sounds like you had the same problem as that post's OP, and you could start from there. Let us know if you encounter anything new.
 

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
420
Reaction score
837
First Language
English
Primarily Uses
RMMV
Actually I had copied something wrong in that topic and in my last post on it, realized I'd made a mistake... It works perfectly fine for actors as I stated. I'm using YED because I can use custom sprite-sheets. in my game all enemies just have one idle animation that is usually 5 or so frames.

this is there error I get though when using the built in transformation...

Enemy Transform.PNG

The other stuff doesn't seem to throw an error though at least. it just won't play the actual animation and just shows the sprite-sheet as a whole.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,746
Reaction score
1,613
First Language
English
Primarily Uses
RMMV
Are you using a custom spritesheet for enemies too? If so, you may want to look at this post for assistance. I haven't tried it yet, but it sounds like you had the same problem as that post's OP, and you could start from there. Let us know if you encounter anything new.
Maybe I'm missing something, but how does it sound like the same problem? The other thread has the enemy sprite moving on the screen while animating, this thread is about not being able to change which spritesheet is being referenced.
The other stuff doesn't seem to throw an error though at least. it just won't play the actual animation and just shows the sprite-sheet as a whole.
So...is that also what happens when you use the code you pasted in your first post? I still don't see where you clearly said what goes wrong when you do that, you just say "it doesn't seem to do the same thing."
this is there error I get though when using the built in transformation...
It's weird that you get an error from the event command but not the user.transform() function, that's what the event command calls.

I'm still betting it's a conflict between the two animation plugins. If you turn off the YED plugin, does the transform function/event work without an error? If yes, what happens if you move the YED above or below (whichever it isn't now) the Yanfly in your plugin manager?
 

zerobeat032

Oh, it's that Zerobeat kid...
Veteran
Joined
Mar 28, 2014
Messages
420
Reaction score
837
First Language
English
Primarily Uses
RMMV
eh sorry if I haven't explained myself too well. I'm not really the best at that sometimes I've noticed. basically when I used the Yanfly tips and tricks or what's listed in the other post, but for enemies... it won't give me an error, it'll just show the entire spritesheet upon the transformation.

Actually I just got it to work with the Yanfly stuff. The plugin in question was oddly enough Yanfly's Visual State FX. I turned it off and it work. THAT'S the plugin that was oddly enough causing the errors. I tried the to transform without anything on but Animated enemies and it was working as I went down the plugin list until I turned on Visual State FX.

sorry for all the confusion I've probably caused with this post. it's seemingly solved though now so I'll have it closed.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,967
Reaction score
14,818
First Language
English
Primarily Uses
RMVXA
Closing as solved
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

There are so many coding terms that are complete gibberish to me. Like what the heck is "Return" or "Array"??
Sometimes I forget how tiny and fun working in 16x16 is (or with 18x18 if ya counting the white outline LOL) and before you ask Yes. Yes this is an appropriate ratio of drinks to all the other stuff. :popcorn:
f37ac128dedc8a53af7deb2b12e8ea81becf6e46.png
Phew, sleep all day, awake all night. I don't know what to draw tonight!

Does that count as poetry? ..Is there a super fast way to test my creations in RPG Maker? Has anyone played the new Pokémon games? I'm itching to buy it but I don't think my husband will want me to after he finds out how much I spent on Christmas!
When can we get this?
RPG Maker MZ Saturn.png
Saturn port when?
I'm new to rpgmaker mv, link me some good stuff to learn.

Forum statistics

Threads
117,072
Messages
1,104,319
Members
153,053
Latest member
dusk_13
Top