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
415
Reaction score
808
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
415
Reaction score
808
First Language
English
Primarily Uses
RMMV

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,231
Reaction score
1,196
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
58
Reaction score
21
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
415
Reaction score
808
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,231
Reaction score
1,196
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
415
Reaction score
808
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,954
Reaction score
14,799
First Language
English
Primarily Uses
RMVXA
Closing as solved
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

I just don't know why, but it's funny.
5.gif
Ugh. The one time I forget to save every hour or so is also the day my computer crashes. That's life!
Even though I spent 100's of dollars on my game already. I think I might just have to give it away for free. Since I haven't heard back from people if I could use some of their graphics. Even from a global mod here. Maybe I can make a donation thing.
you know, some days you get resentful that game dev is even considered a "fun job" and other days it's like, welp, time to roll up my sleeves and code these molotov cocktails
If you suck at playing trumpets, that is probably why.

Forum statistics

Threads
115,964
Messages
1,094,435
Members
151,234
Latest member
sousou123232
Top