Faking 3D

Yes, I understand now. And it should be possible with just the Play Movie command - I just tried it with a movie file from an official demo project and it worked as expected. Are you sure your video files have the correct format? From the Documentation:

Video Files (Movies)



The file formats that are playable depend on the operating environment, so please prepare the below 2 file formats with the same file name.

  • WebM(.webm)
  • MP4 (.mp4 encoded with H.264 codec)

* When creating a game that will be played on Windows or Mac, please prepare only the WebM file format. When creating a game that will be released on the web or made for Android/iOS, both file formats are required.



Apart from that, I can think of two reasons why the game lags when you show the pictures like that:


First, you should only use one picture index: Show Picture #1 for the first image, Move Picture #1 for all the others, (scratch that, I just realized you can't change the image in Move Picture. Use another Show Picture #1 command, that shoud override the old one.) and Erase Picture #1 at the end of the "video". Right now, you are stacking 20 pictures on top of each other, and I guess that's not too great for performance 😉


Second, you said your video is supposed to run at 25 frame/s. RPG Maker MV runs on 60 frames/s, which means a wait command of only 1 frame will make the "video" run about twice as fast as it's supposed to. Waiting 2 frames between picture change should give you a better result.
Thanks the video now works, this will make things easier no need to create tons of images, the video isn't as large either. There's only one problem, as you can see at the start of the battle there's a slight delay before the camera starts moving and you see the last frame of the animation. How would one get rid of that...but this looks great, next I'll see if I can make the cubes move towards each other. Let's make sure the stuff works before we create the graphics. >🙂
You would either need a plugin that changes the order in which things are executed at the beginning of the battle, or you use a workaround: Set the battleback to the first frame of the video and use the Change Battleback Event Command after the video to change to your actual battleback for the troop. You need a plugin like this in order to change the battleback during battle, though.
Ok so I found these ones, Battle engine core, Action sequence pack 1 2 3. I guess that should be enough, just 4 plugins not 9. They should make it possible to show a series of images before battle, while performing an action such as attacking etc etc. Thank you and if it won't work I'll let you know you wasted my time. 😉

I said 8-9 because you're going to need Yami's sideview battle extension plugin in order to be able to have full control over the sprite sizes and frame amounts AS WELL AS create your own custom motions to be used with the action sequence pack. You need the animated sideview enemies plugin to animate your enemies since those are static by default. And yes, the action sequence series should be able to accomplish exactly what you're asking for and referenced in the videos with a little messing around. I have custom pre-battle animations for each character in my game using this same setup minus the battle back panning.


Using pre-rendered video in this scenario is crazy. You won't be able to add any real variation to your battles unless you want some extreme bloat... ex, if you have one playable character rendered and only ONE enemy, you'd either have a really boring game of the same battle over and over, or you're going to have to render out 2-4 different video intros with varying amounts of the one enemy to even give some level of variety... add in even two more enemies per area (battle back) and you're going to have to render dozens of videos. You'll be way over 250MB before you complete your first dungeon. I mean, if that's really what you want to do, that's fine? It's just weird because you referenced Golden Sun which has no 3d at all, even in the battle backs. Just low poly 3d sprite sheets and really cleverly painted battle backs. 


Honestly though for all the trouble it would be, you'd probably be better off working in Unity instead since that has native 3d. Then you could really showcase your skills in 3d modeling instead of trying to hack something out in RPGM. Not to say people haven't done 3d things in RPGM but... it's just not built for true 3d and faking it to the extent of using all these pre-rendered videos is going to be a real resource nightmare for the actual players of the game. But if you've found something that works for you then... good luck I guess. Still think Unity would be better for this, but good luck anyway.
Well it turns out the video intro of what would be 125 png images is only about 400kb as a video. So if there are 10 enemies, that's 4mb, and if we want to add 5 backgrounds that's 20mb which is nothing really. But I doubt that many backgrounds or enemies are going to be created, it takes far longer to model, texture and animate a character than i takes creating a monster sprite. So realistically I think there will at most be 4 enemies which 1.6mb times 2 backgrounds which is 3.2mb. 3.2mb is hardly 100mb.


But I have encountered a new problem which could only be solved by a plugin I'm afraid. After you select an enemy to attack one would want the sprite to run towards the enemy and attack, this would have to be an animation like when you use a skill an animation is played. So after you've selected an enemy to attack the character sprite has to quickly disappear and an animation of the character would have to be played attacking the monster. 


You would have to create three animations per character since there will be three enemies to attack. This isn't difficult you just render out the frames as you did with the video, the problem is that a different animation would have to be played depending on who the player chooses to attack. So he runs towards the right monster. Same with the enemies, depending on who they attack a different animation would have to be played. I'll definitely need a plugin for this since the battle command don't know what animation to play when you attack monster 1 as opposed to monster 3. 


One would have to disable the the player changing the character formations and the enemies would have to appear at the same location also. Two of the same kind of enemy on different locations would mean more animations so let's not complicate things. If you have 3 characters they'll each have three places to attack, that's 9 animations, these animations could be used for any battle. The monsters would also need 3 animations each so if there will be 4 enemies that's 12 animations. Together that's 21 animations, times how many backgrounds you got which I guess would be 2, 42 animations. This is confusing to think about but one hour of fiddling with this and the animations would be setup correctly, the rendering is done automatically.


But a plugin is needed, if any scripter reads this and wants to help out let me know, otherwise I'll post a new thread in the other forum.
Or you could not use any prerendered video for the "normal part" of the battle. If you make it so that the camera at the end of the intro clip is in a normal sideview position with the enemies on the left and the player characters on the right (which means you will probably have to use an orthographic projection for the intro), you can switch to the standard sideview battle system that comes with RMMV. Render out the frames for every battler (enemy and player characters) and use the plugins mentioned above to animate and move them. You could still add axtra video clips for special skills that only show either the target or the caster, and add them to the Action Sequences.


I imagine that would only be slightly less visual impressive and much less videos to include - which means smaller file size and less fiddling with conditions.


If you want to stick to the idea of one video for every possible combination of skills, you can use Yanfly's Action Sequences as well. I think I could prepare the notetag code for you in such a way that you only need to add in the battler's IDs and the names of the video clips.


I have to agree with ashikai, though - RPG Maker isn't really made for that kind of thing. It's probably not much of a deal if your game uses less than 10 combinations (!) of enemies, but if the game should go beyond that at some point, you should consider either switching to prerendered spritesheets instead of complete scenes or using an actual 3D game engine.
If you want to stick to the idea of one video for every possible combination of skills, you can use Yanfly's Action Sequences as well. I think I could prepare the notetag code for you in such a way that you only need to add in the battler's IDs and the names of the video clips.

I don't understand what you're talking about here, but if you could help me make it possible for enemies and characters to play different animations depending on who they decide to run up to and attack that would be great. I doubt it's as simple as just editing something in those action plugins. It would be the same thing as having one skill in rpg maker say "fire" play a different animation depending on what enemy you choose to use "fire" at.


To just have a video play at the start would defeat the purpose of faking 3d. It would still look better than most of what you see in rpg maker but it would also look cheap in my opinion. This is going to be the end result.










NOT this: 😉
It would be the same thing as having one skill in rpg maker say "fire" play a different animation depending on what enemy you choose to use "fire" at.

And that should be possible with any plugin that allows you to use code in a notebox (maybe Skill Core is better for that than Action Sequences): Check the position of the actor in the party, check which troop is fought, check the position of the target within the troop and bring it all together in a number of conditional statements to determine which video clip is played. I don't have time to look up the exact commands right now, but they do exist. Look at any of Yanfly's Tips and Tricks videos to get an idea of what can be done in noteboxes.


And I'm still not convinced it would look "cheap" to omit the completely rendered skill animations for each combination of actor and enemy. What I have in mind is something like this:


Intro -  video: camera "flies" in to show enemies and actors (one clip needed for each troop)


Standard battle view - prerendered sprites on prerendered background image, with idle animations (frames for those on a spritesheet)


Normal attack - same prerendered sprites, user runs up to target and back (would look the same as at the 1:00 mark (0:55-1:02, to be exact) of the FFX video above)


Special Skill part one - video: actor "powers up" (only active user is visible in the clip - one clip needed for each user and skill)


Special Skill part two - video: enemy is damaged (only active target is visible in the clip - one clip needed for each target and skill)


back to Standard battle view
You're suggesting using the same prerendered attack animation for every enemy that is attacked, you could only get away with this from a perfect sideview perspective. Then you only have to worry about two dimensions, you would have to line up the actors so they form a V towards the camera like this. So you're able to see them all despite looking at them from a side view perspective. Then when they attack an enemy that is closer to the camera you use the action plugin to increase the size of the sprite? I guess if the animation isn't too long but happens quickly one might get away with it, then when a character uses a skill one could have a video play of a closeup of that character doing some pose like Yuna did when she used some magic in the video clip above.


Hmmm yes this is a good idea, then we'll only need to render out one attack/skill animation per character/map. It's definitely not as fancy as the extreme perspective you see in real 3d games but it's still quite nice. Then for a 3 member party you'll have 6 animations, 3 types of enemies would also have 6 animations. 12 animations per map plus the camera intro. The only thing I'm unsure of is how one would increase the size of the sprite depending on who the sprite is attacking. But I guess that's in the documentation of the action plugin. I'm not too keen on messing with those plugins, if anyone think this sounds cool and want to help you can. 😉


[IMG]https://s18.postimg.org/ps05wmqah/yyy.png[/IMG]
The only thing I'm unsure of is how one would increase the size of the sprite depending on who the sprite is attacking.

Being lazy, I'd say, one wouldn't - use orthographic projection to keep everyone the same size, only switch to perspective for skill animations. But that's probably not what you want to hear 😉


I haven't found anything to change the sprite's size in the Action Sequence plugins, it would probably either need an extension plugin or more Javascript trickery.


Or instead, you could put different character animations on one spritesheet, e.g. one custom motion with frames for the attack to someone in the back (i.e. sprite gets smaller as the animation progresses), one motion with the attack motion for someone in the front etc. Yami's Sideview Battler Enhancement has an option to create custom motions which you can then call inside an Action Sequence depending on the target. (In my testing project, my hero now throws himself to the ground and slides over to the enemy if his target is a minotaur, so that appears to be working. The method I'm using right now would require a different "enemy" in the database for each position, since I can only check for the enemy ID in the database, not its current position in the enemy troop.)


This is the notetag I'm using (different attack motions for slimes and minotaurs; enemy #2 is the slime, #4 is the minotaur):


<setup action>
</setup action>
<whole action>
</whole action>
<target action>
if target.isEnemy()
if target._enemyId === 2
motion item: user
else if target._enemyId === 4
motion dead: user
end
end
move user: target, front base
wait: 10
attack animation: target
wait for animation

action effect
wait for animation
wait for movement
wait: 5
</target action>


(Required: YEP Battle Engine Core and Action Sequence Packs; YED Sideview Battler Enhancement for more frames and custom motions)


With this, it wouldn't even be necessary to have a perfect side view, since the attack motions to all possible enemy positions would be rendered out anyway.
Or instead, you could put different character animations on one spritesheet, e.g. one custom motion with frames for the attack to someone in the back (i.e. sprite gets smaller as the animation progresses), one motion with the attack motion for someone in the front etc. Yami's Sideview Battler Enhancement has an option to create custom motions which you can then call inside an Action Sequence depending on the target. (In my testing project, my hero now throws himself to the ground and slides over to the enemy if his target is a minotaur, so that appears to be working. The method I'm using right now would require a different "enemy" in the database for each position, since I can only check for the enemy ID in the database, not its current position in the enemy troop.)

That would be similar to rendering out a new animation for each enemy position to attack. Except it wouldn't be a one button click but you would have to mess around with each animation inside of rpg maker. Something I'm not too familiar with how to do, I downloaded rpg maker just 3 days ago. Odd that there is no way to scale the sprite, then I guess we're stuck where we started. Maybe there is no good way to do this in rpg maker. 🙁


Oh well it's not the end of the world. 😛  It's worth repeating that I'm not a programmer and actually don't enjoy this stuff, I'm more into graphics which is why I thought it would be worthwhile to try to do this in rpg maker since the program has done most of the programming already. But it turns out additional programming is required and that's not something I'm capable of so unless there is someone who wants to mess with resizing sprites or make it possible to play a different animation depending on who you attack I'm ready to throw in the towel.
Can you layer videos like that?
I mean, I think I get your idea, but it is based on using videos in layers like an usual battle does png images. I thought you were more experienced, but if you only got it 3 days ago did you test to see if using videos like you want is even possible?


Also, nevermind the size, won't the processing power to play this many videos at once be a murder on most computers?
@Waterguy I think now we're back to using prerendered spritesheets for normal attacks and (non-layered) video clips for special skills, but I might be wrong 😛


@Lalala

Except it wouldn't be a one button click but you would have to mess around with each animation inside of rpg maker.

If you can automatically format the output in such a way that the frames are lined up horizontally, it would only require minor image editing to create spritesheets, and two relatively complicated Action Sequences like the one I wrote above - one for enemies, one for actors - to get them into the game. (Well, and a bit more setup for Yami's plugin, but that's not complicated, just tedious.) I can do that for you, if you want; the only requirement for the check to work is that all the enemies in one troop are different enemies in the database - for example, a troop of three slimes would need the enemies Slime Front, Slime Middle and Slime Back in the database.


Is it possible? Yes, definitely; but it's not what RPG Maker was intended for, so you need to work with plugins (which are already written, fortunately).


But if you only got RPG Maker 3 days ago, you should maybe consider going the "cheap" way for your first project (only show one video clip at the start of the battle, if anything) and learn the engine first. You don't have to use the default artstyle; in fact, there are already multiple examples of prerendered 3d assets used as graphics - look at the Medieval packs from the store for an example.
I thought you were more experienced, 

I'm an experienced 3d sculptor for next generation games not an experienced rpg maker mv user or programmer. 😉  The only reason I got rpg maker is because the programming is done except for the two problems that popped up. If the problems can't be solved by me I'll not be solving them. Come to think of it the character sprites will also have to animate at 25-60fps. Wouldn't know how to fit that into a single picture.


Since things are becoming complicated I think the only way this will be done is if someone that is not me who is more experienced with programming and rpg maker handles the rpg maker stuff while I concentrate on the 3d graphics and animation. If not R.I.P fake 3d in rpg maker. 🙂
RMMV runs at 60 fps, that shoudn't be the problem. Obviously, the spritesheets will be quite large, but I don't think there is a limit for the number of frames in the YED plugin? Also, 1 second is already (too?) long for a simple attack animation.


RPG Maker, especially MV, is quite friendly to non-programmers, and of all the game engines I know I'd say it's the easiest to use if you don't want to write code yourself. But it runs on a language that's relatively "slow" - you can't expect the same things from this engine that you would expect from whatever engine is used in next gen game development.


If you want to develop your own games, RPG Maker is a good choice, in my opinion. It requires no knowledge of programming languages unless you want to write you own plugins. (Even Action Sequences don't use what I would call programming, more a list of predefined terms that you combine yourself. The actual programming is already taken care of by Yanfly.) But as long as you're still learning to use the engine and don't have any prior programming experience, everything will seem complicated at first 😉  


That being said, I still think that what you described can be done in RMMV and I would like to help you set it up, if only to see whether it works 🙂   I won't make your game for you - there's a lot of "RPG Maker stuff" you'll have to learn yourself (but since you got RMMV you probably have some motivation to learn how to make a game 😉 )
That being said, I still think that what you described can be done in RMMV and I would like to help you set it up, if only to see whether it works  🙂   I won't make your game for you - there's a lot of "RPG Maker stuff" you'll have to learn yourself (but since you got RMMV you probably have somemotivation to learn how to make a game  😉 )

Alright so you handle all the rpg maker stuff then and I'll concentrate on creating the graphics. Should we use this site for communication or some chat software?
Not all the RPG Maker stuff, just the implementation of a "fake 3d" battle system and any other plugin setup you need help with. Events and Database would still be your part 🙂


We can use this site. but we should maybe take it to PMs so that we don't bloat the thread. I'll also send you my E-mail just in case.
Well I wouldn't know how to increase the size of sprites or the other issue we talked about, I assume that's event and scripting stuff. I wouldn't know how to do it. 😉  It's okay if you don't want to do it, this would just be a side project for me I've got a of other stuff.
Oh no, changing sprite formats (more animation frames etc.) would be done with plugins, that's something I would do. With Events and Databse I mean things like "What does this NPC say if you talk to him? How much damage does that skill do? How much HP does this Boss monster have?" Sorry, should have expressed it more clearly.
Talking people? I'm not planning to create a full game, if a little game would be created it would have to revolve around combat. I guess you would be in a colloseum or something and have to fight a series of battles or something. But I'm just doing this for the fake 3d look, it would be an interesting challenge. Well in that case sure let's do this, I'll send you a pm because you would probably want a say in what we're making.

Original thread: https://forums.rpgmakerweb.com/threads/faking-3d.70158/