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
836
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
836
First Language
English
Primarily Uses
RMMV

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,717
Reaction score
1,601
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
36
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
836
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,717
Reaction score
1,601
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
836
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,817
First Language
English
Primarily Uses
RMVXA
Closing as solved
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Folks, if anyone sends you a message inviting you to add their API to your game, please report them. We don't want people spamming our members asking them to add stuff to their games for their own (or others') benefit.
I'm listening to iiluminaughtii talking about the secrets behind shady businesses and scams. Meanwhile I'm writing a fanfic about Sephiroth from FF7, one specifically for my stepmom. I'll get to give it to her, too, because my boss said I could take the holidays off! Dec. 22-27 I will be in Orlando, and maybe Fort Myers too, visiting my dad and stepmom!
Of course, I bought a handful of games on the Steam Black Friday sale. Will I try them? Will I complete any? Who knows...
I don't really have any neat updates today about how I screwed up programming... But if you want to observe the intensenes of me programming, then you can check out my stream :)
New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D

Forum statistics

Threads
117,012
Messages
1,103,794
Members
152,908
Latest member
Solytude
Top