RPG Maker Forums

I am working with some experimental large resolution tile sets that have stupidly huge tiles. They look cool but I need to be able to easily zoom in and out for it to work in a game. I got zoom working with a mouse wheel but not when combined with YED_TileD.

TileD is perfect but it has a conflict with both SRD_CameraCore.js and MBS_MapZoom.js. I modified both to let me permanently zoom in and out with the mouse wheel, while trying to get this to work. Both conflict with rectLayer.addRect(textureId, ux, uy, dx, dy, w, h); Which is where the individual tiles are added to the individual layers.

SRD_CameraCore.js crashes with an error mesege. Cannot read property addrect of undefined. If I comment out the line that actually lets it resize the map then zooming still works on the character, but the background is black. However it did trigger some logging that I added in that seems to indicate it loading new tiles as it should when you zoom out. It was just not drawing them because I had removed that.

MBS_MapZoom.js is slightly less in conflict because it loads the TileD map and lets you zoom in and out, but not further out than is at the start. I think the error here is because of needing to load more tiles that were off screen. It scrolls out to about .99 zoom, but going further breaks it. Where numbers lower than 1.0 are zoom out.

I have tried changing a lot of the values in YED_TileD but have not found anything that I could just multiply by some scale value and get the output I want.

Layers are created by _createLayers
var layer = new PIXI.tilemap.CompositeRectTileLayer(zIndex, [], useSquareShader);
layer.layerId = id; // @dryami: hack layer index
layer.spriteId = Sprite._counter++;
this._layers.push(layer);
this.addChild(layer);

Layer is passed from method to method but and is first used by
_paintAllTiles which seems to send each layer one at a time to the next method
_paintTiles, which seems to just do a small check to see if the layer is maked as visible.
_paintTilesLayer which seems to figure out what tiles are currently needed to be drawn on the screen. It takes the layer and, where the tile is in the tile sheet, and where it needs to be in the layer to be painted and it sends that to...
_paintTile which actually paints the tile, one at a time to a layer. Messing with numbers here can cause tiles to be spaced incorrectly but the tiles themselves do not change in size.
rectLayer.addRect(textureId, ux, uy, dx, dy, w, h); is the line where it actually gets drawn, and this conflicts with other zooming plugins.

I hope someone has some incite as to what I am supposed to do, as I am hitting a wall as it is. Any help would be appreciated. Just pointing me in the right direction might be enough.

Links to the plugins.

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,450
Members
137,820
Latest member
georg09byron
Top