Using scrollers in Tile map builder
by Dennis De Marco · in Torque Game Builder · 06/24/2006 (5:48 pm) · 4 replies
Hidey ho,
I've got a 32x32 water tile which if I make it into a scroller and set the y scroll speed to -1, makes a nice rolling effect.
The question is, can I then take this scroller and paint it in the tile map editor? I'd hate to have to manualy edit all the water tiles in the level builder by hand. Any tips welcomed.
Thanks,
Dennis
I've got a 32x32 water tile which if I make it into a scroller and set the y scroll speed to -1, makes a nice rolling effect.
The question is, can I then take this scroller and paint it in the tile map editor? I'd hate to have to manualy edit all the water tiles in the level builder by hand. Any tips welcomed.
Thanks,
Dennis
#2
@Dennis: No you cannot, you'd have to modify the editor. What I would do though is, on loading of the layer go through each tile, remove all water tiles and replace them with a scroller. Those scrollers won't be part of the tile layer anymore though. Another solution would be to create an "active tile".
06/26/2006 (12:37 am)
He wants the tile only to scroll I believe.. only the water.@Dennis: No you cannot, you'd have to modify the editor. What I would do though is, on loading of the layer go through each tile, remove all water tiles and replace them with a scroller. Those scrollers won't be part of the tile layer anymore though. Another solution would be to create an "active tile".
#3
A sample function would be:
06/26/2006 (9:17 am)
Yes, I understand what he would like - my suggestion still applies. You would simply have a seperate tile layer for just the water, which would wrap at a certain pace, then a tile layer of beach/river bank/whatever would also be made and properly laid in front of or behind the water layer in the level builder.A sample function would be:
function water::OnLevelLoaded(%this, %level)
{
%this.setWrapY(true);
%this.setAutoPanY(5);
}
#4
I figured I'll need a seperate layer for water, another for more land overlay tiles. It's more or less a very big learning experience for me, but fun so far.
06/27/2006 (7:15 pm)
Thanks guys. I'll have to give this a shot. Toying around with an ultima 4/5 tile base game. I might just animate the tile via art if this is going to be a large pain.I figured I'll need a seperate layer for water, another for more land overlay tiles. It's more or less a very big learning experience for me, but fun so far.
Torque Owner Mike Lilligreen
T2DTutorials