Adventure Game Studio

Creative Production => Critics' Lounge => Topic started by: speksteen on Tue 28/05/2024 15:41:47

Title: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: speksteen on Tue 28/05/2024 15:41:47
Hi! I tested out some animations in Moho. I tried exporting them as a gif and import them in AGS. Unfortunately there were way too many png's.

https://youtube.com/shorts/z-L0Fn5lWpU?si=beQ_cpKWvZbAuoHQ

I was kinda excited to create something with it. I know Gamemaker can handle it but I really want to stick with AGS.

What do you think? Would lower res and less frames work in AGS? :)
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: Snarky on Tue 28/05/2024 16:40:41
Quote from: speksteen on Tue 28/05/2024 15:41:47Unfortunately there were way too many png's.

What does that mean? What problem did you encounter?
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: Crimson Wizard on Wed 29/05/2024 00:27:05
Do you mean that you convert gif to pngs prior to import?

I recall that AGS can import gifs alright, it splits them into separate frames though, because that's how its was historically made to work: each animation frame is a separate sprite. But it does so automatically without any additional action required from your side.

For convenience you may also create sprite folder per each animation, and import gifs there.

Views also allow to create animation loops from a sprite folder, there's a respective command in a context menu.
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: speksteen on Wed 29/05/2024 02:14:36
My apologies for being unclear :)

I mean I export a gif from Moho and tried to import it in AGS as a view. The problem is there are way too many sprites (more than 200) for a simple animation. I'm currently looking for a workaround or use more simple animations.
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: Gilbert on Wed 29/05/2024 02:21:29
Never used Moho, but isn't there some option to set the frame rate of the exported file, so that you may lower it to reduce the number of frames in the GIF?
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: Crimson Wizard on Wed 29/05/2024 02:22:31
I looked "Moho" up, and it appears to be a vector animation tool. Indeed, AGS is strictly a raster animations engine, so complex vector animations might not be directly suitable.
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: speksteen on Wed 29/05/2024 02:34:12
Moho is vector based but it can export raster based gifs. Any idea on the maximum number of sprites per view? I tried looking it up in the manual but couldn't find it.

Like Gilbert said I'm sure I can reduce the number of sprites/frames but I have no clue what the maximum number of sprites per view is :)
Title: Re: Animations made in Moho - Unfortunately they don’t fit in AGS
Post by: Crimson Wizard on Wed 29/05/2024 02:50:03
Quote from: speksteen on Wed 29/05/2024 02:34:12Moho is vector based but it can export raster based gifs. Any idea on the maximum number of sprites per view? I tried looking it up in the manual but couldn't find it.

There's no hard limit for the number of frames per view or loop.

Having many frames may make loading an animation slower at runtime, especially if it uses high-res graphics. But idk if that's going to be a problem in your case, only tests may show.