Pages: 1
Author Topic: Animated tiles/tilesets  (75,266 Views)
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Posted on: August 08, 2011, 01:34:45 PM
Using RPG Maker 2000, I remembered the concept of animated tiles.
Of course, I don't suggest a tiling algorithm nearly as complex as RPG Maker's, but still I figured a small useful subset of it could be interesting in ENIGMA.

Here's what I propose for ENIGMA:
Create an image. Specify that the tileset has only one column, and each tile has 32x32.
Now, make the tileset have (32*N)x32, and specify in the tile editor that the animation has N frames.

Of course, some extra options would be useful, to better specify animations and ensure backwards compatibility with GM, but I just wanted to give an idea of what I meant.

Here's some options ENIGMA would need to have:
Number of animations
X delta per animation(32 in the example above)
Y delta per animation(0 in the example above)
Animation speed?
Animation order?(1-2-3 or 1-2-3-2) RPG Maker has this but I don't know if it's really necessary. What do you guys think?
Offline (Unknown gender) RetroX

Master of all things Linux
Contributor
Joined: Apr 2008
Posts: 1,055
View profile
Reply #1 Posted on: August 08, 2011, 02:12:00 PM
If you're going to have an animation order, that might as well apply to sprites, too.  It overcomplicates things, but avoids extra space being wasted for duplicate frames.
Post made August 08, 2011, 02:40:30 PM was deleted at the author's request.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #3 Posted on: August 08, 2011, 03:26:04 PM
@Fede-lasse I propose this would just be an additional set of options, which did not change the current behavior.
By setting a tileset's "number of animated frames" to "1"(the default), the behavior would be exactly like GM's.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #4 Posted on: August 08, 2011, 05:34:04 PM
Two words: Static sprites.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #5 Posted on: August 08, 2011, 06:42:50 PM
@Josh
Not sure what you mean. Could you be a bit more clear?
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #6 Posted on: August 09, 2011, 12:41:09 AM
I think static sprites is something Yoyo has implemented. If not, they should have. Basically, you place sprites in the room along with the tiles.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #7 Posted on: August 09, 2011, 10:57:11 AM
I agree. Modifying background resource could be too much pain in the ass. So just allowing to place sprites in the room would be a good and relatively easy solution.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #8 Posted on: August 09, 2011, 01:15:31 PM
@Josh but then you lose the ability to have multiple tiles in one single tileset, which is one of the greatest advantages of using tiles.
(although I admit it would be better than nothing)
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #9 Posted on: August 09, 2011, 07:30:45 PM
It would be pain in the ass to have multiple frames for multiple tiles in one tileset anyway. Either we need to add frames to background resource or allow static sprites. You wouldn't animate every tile on the screen anyway (or I wouldn't) as animations would be for things like grass or trees, not dirt or rock.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #10 Posted on: August 09, 2011, 09:01:48 PM
besides, we could easily present a directory full of sprites as a tileset to choose from.

Anyway, animated tiles would screw up the whole scheme I drew up for fast tile drawing. Static sprites can be tacked on after each layer.
Offline (Unknown gender) luiscubal

Member
Joined: Jun 2009
Posts: 452
View profile
Reply #11 Posted on: August 09, 2011, 10:41:10 PM
Sprites could be enough if the room editor is properly done.

Suppose I have a world with land and water, then multiple objects on top of that. I want to be able to edit the objects independently of what's underneath. So if I click in the wrong place I won't have the sea be accidentally removed. GM allows this today with tiles. Would LGM have this feature for sprites-on-rooms?
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #12 Posted on: August 09, 2011, 11:59:55 PM
I think it would probably just work like the normal tiles. So if you meant that you can't delete tiles while editing objects, then yes, of course you won't be able to delete sprites while editing instances. You could maybe delete background tiles while doing that though. But as there isn't any implementation for static sprites, and knowing the speed things get done here - I doubt we will have to worry about this for quite a while.

Also, just to make people less sad about the slow progress - paths and motion planning (mp_) are being worked on. Paths are basically done and mp_ is slowly made as well. I commit them together even if paths are not totally finished. I was waiting on the extension system but it will apparently not be done in the coming weeks. Also, mp_ doesn't really work without paths, so they both would be probably the same extension (or at least mp_ would be dependent on paths while paths wouldn't be dependent on mp_).
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #13 Posted on: August 10, 2011, 12:00:45 AM
If ENIGMA can support it, LGM support won't be far behind.
At some point, though, before we start mass introducing these GM-incompatible features, we need some proposals on how to deal with when the user tries to press "Save As GMK" on a game full of EGM-specific features... This is not the topic to discuss that, though.
Pages: 1