Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Animated A1 Tiles in the 2nd Layer?
- Original author: awhite
- Original date: February 6, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/animated-a1-tiles-in-the-2nd-layer.56368/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
I am working on a runtime terrain and map generator for RMMV. So far, things are going well. I have a stream generator that works really well (Perlin noise + A*). I even have it mapping autotiles correctly so the stream looks like something that you could make in the editor. Spoiler { "lightbox_close": "Close",
Archived First Post
I am working on a runtime terrain and map generator for RMMV. So far, things are going well. I have a stream generator that works really well (Perlin noise + A*). I even have it mapping autotiles correctly so the stream looks like something that you could make in the editor.
I wanted the stream to be more generic than what's in the base tilesets so I took the A1 outside tileset and stripped out the grass around the water. This worked too. Now I can put a base floor/terrain in layer 0 and put a stream in layer 1 and they are independent for the most part. Now for the issue...
If I put A1 tiles into the second lower layer, I loose animation. I traced the issue down to line 4108 of rpg_core. I modified it look at both layer 0 and layer 1 for A1s...
if (!lowerTiles.equals(lastLowerTiles) ||
((Tilemap.isTileA1(tileId0) || Tilemap.isTileA1(tileId1)) && frameUpdated)) {
My question is: is the original code "by design?" This seems like an oversight. I would make my plugin just override this method but it's a huge critical piece of code that I would like to not override for the sake of one little or statements. Thoughts?
Protected download
I wanted the stream to be more generic than what's in the base tilesets so I took the A1 outside tileset and stripped out the grass around the water. This worked too. Now I can put a base floor/terrain in layer 0 and put a stream in layer 1 and they are independent for the most part. Now for the issue...
If I put A1 tiles into the second lower layer, I loose animation. I traced the issue down to line 4108 of rpg_core. I modified it look at both layer 0 and layer 1 for A1s...
if (!lowerTiles.equals(lastLowerTiles) ||
((Tilemap.isTileA1(tileId0) || Tilemap.isTileA1(tileId1)) && frameUpdated)) {
My question is: is the original code "by design?" This seems like an oversight. I would make my plugin just override this method but it's a huge critical piece of code that I would like to not override for the sake of one little or statements. Thoughts?
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...
