Creating a small space project with animated planet and rotation

Hello there ! I've been wondering if it was possible in RPG Maker MZ to have entirely animated planets with full rotation ?

Basically i have spritesheets of 50 frame animations, but i don't know if it's even possible to put this kind of massive file in the engine (Events are just 3 frames after all).

(The spritesheet is 5000 x 100 pixels), the planet itself is 96 pixels in diameter with a full rotation cycle.

The objective with this small project is to create a full on solar system with each map having one planet and point of interest (+ ability to go on the said planet if possible).

I'm actually working on the project itself to just see if it's possible, if it's too hard, i'm not gonna bother.
I did something like that, but that was already a few years ago.

What I did was to use Pictures.

First, I organized my images in directories so each planet type has its own directory, like this:

Code:
- Tatooine
  - 1.png
  - 2.png
  - 3.png
  ...
- Dagobah
  - 1.png
  - 2.png
  - 3.png
  ...
...

I have an event with parallel process that, for every seconds, increases a counter variable and then modulos by the number of frames (50).

Then, I call "Show Picture". Because RPG Maker doesn't let you choose an image by a Variable, I use a Script Call. It looks like this:

Code:
$gameScreen.showPicture(
    1, // Picture ID
    'Tatooine/' + $gameVariables.value(42), // Planet Name,
    1, // 0: Upper Left, 1: Center
    100, // X Coordinate
    100, // Y Coordinate
    100, // X Scale
    100, // Y Scale
    255, // Opacity
    0, // Blend Type
)
Important: Replace 42 with the Variable ID of your counter!

Finally, I think there are many different ways, but this one works best for me.
I did something like that, but that was already a few years ago.

What I did was to use Pictures.

First, I organized my images in directories so each planet type has its own directory, like this:

Code:
- Tatooine
  - 1.png
  - 2.png
  - 3.png
  ...
- Dagobah
  - 1.png
  - 2.png
  - 3.png
  ...
...

I have an event with parallel process that, for every seconds, increases a counter variable and then modulos by the number of frames (50).

Then, I call "Show Picture". Because RPG Maker doesn't let you choose an image by a Variable, I use a Script Call. It looks like this:

Code:
$gameScreen.showPicture(
    1, // Picture ID
    'Tatooine/' + $gameVariables.value(42), // Planet Name,
    1, // 0: Upper Left, 1: Center
    100, // X Coordinate
    100, // Y Coordinate
    100, // X Scale
    100, // Y Scale
    255, // Opacity
    0, // Blend Type
)
Important: Replace 42 with the Variable ID of your counter!

Finally, I think there are many different ways, but this one works best for me.

Oh ! That's quite smart.

I understand, quite the way to do it, but i hope that wont create any lag, that's my concern to be honest.

There's not much space turn-based games, so i'm litteraly alone, it's not like a classical RPG fantasy with just the base maps. I still have no idea how i'm gonna simulate the endless space void with the distant stars. (AH AH)
Hey, I just found my old demo. Unfortunately, there are still many technical issues because I'm focusing on other things right now, but the planet system works fine. When boarding the airship, simply click on the left button to leave the planet's atmosphere.

Nah that won't cause lag. At least if you put a delay at the end of the event. If you want that to update once every minute, you have to wait 3600 frames. But even if you update it once a second (wait 60 frames), it should still be fine.

I have a time system that updates 60 times per second, and still doesn't cause lag at all, even though there is quite some math going on there.

Parallel processen can cause lag when they repeat quickly and when they are large. Just showing a picture should be fine.

---

Another problem you might have, is the image having problems to load.

To prevent this, load the current picture in a slot with a higher ID, and the next one on the same spot, but one ID lower or with opacity 0. This way the nw 't image is loaded before it's needed.
Hey, I just found my old demo. Unfortunately, there are still many technical issues because I'm focusing on other things right now, but the planet system works fine. When boarding the airship, simply click on the left button to leave the planet's atmosphere.

Oh ! I see the render, but it wont be fluid enough, i need the tick speed to be faster.

What you did isn't too far from what i had in mind in terms of space map.

The idea behind mine would be to have the "fleet" (One ship) visible on the map (As if it was a party of heroes) and be able to go to asteroids, or objets as if it was a party (And interacting / go to diferent places).

For exemple, you have your fleet, you go to a planet, you have the interaction to land on the planet, and at that point, you'll have your crew on the planet surface, for ground operations.

Quite the complex stuff i know since the crew and the fleet would be independant, it's like having two parties at the same time. One for the space battles, and one for the ground battle/exploration.

-> Sideview battler for both
-> Eight spaces for party/fleet (Maximum to have 8 ships/8 crew ("heroes") or squads at the same time in combat)
-> Ability to buy new ships and change the party (No idea how to implement that)

If i can atleast find a way to create beautiful maps and have those base features, i think i would be happy. The others, i don't think it'll be very hard to implement since there's already systems for those that i know of.

(Start of the game with potentially 3 ships, civilian ships at that + one fighter squadron, but endgame would be with capital ships), so i also need to find a solution to have big battlers on the battle screen, with 8 spaces without having the bigger ships cover the smaller ones.

@John Thanks for the additional info. I'll have to think of simpler ways to do my thing. I see options, but it would have to be multi-layered.

The planet generator : https://deep-fold.itch.io/pixel-planet-generator

Found it, and it's magical (Those are 50 frame animations from what i could see).

EDIT : Is it even possible to use a GIF ? (Because i've just checked and the generator offers the ability to get gifs).

So, maybe ?
There are plugins to enable Gif support in RPG Maker projects. Like this one.
Didn't try it on my own tho.

There are plugins to enable Gif support in RPG Maker projects. Like this one.
Didn't try it on my own tho.


I've seen this one, i think i'm gonna try it. Just an experiment. Especially if its possible to click on it, that would probably be enough, i hope.
You can also use scripting to give events more frames of animation. I have been upgrading some of my flashier things to have 12 frames.
I've used a nice plugin that can use more frames. I believe it was by Galv, but I'm not sure. I'll check when I get home.
Thanks boyos ! I'm slowly getting back into the engine after leaving it for some time. I'm trying to make the batle screen and party work first tho. But it doesn't look too too bad for now.

TEST.png


Actually, i'm trying to find a pluggin to allow the player to change the placements of the party members and the 8 members pluggin i need to get also. (I remember they both exist, just need to get them xD)
Visustella should be able to fix that.

But for a new question, you better make a new topic. People who might know a great party-size and placement plugin, might not see your question if they know nothing about animations.
Visustella should be able to fix that.

But for a new question, you better make a new topic. People who might know a great party-size and placement plugin, might not see your question if they know nothing about animations.

Thanks my man. I just hate creating 10000 topics, it's polluting/spammy 🙁

Well, no choice anyway.

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-small-space-project-with-animated-planet-and-rotation.173274/