0 Members and 1 Guest are viewing this topic.
Ah ok. Well I was kinda worried what you did was just alternate automatically between two tiles, which would have been a bit hard in BASIC, not to mention the user may want to have the freedom to manually change. 4 frames might be enough, I think. 8 might be good too, if you have scrolling water, although it's not very common in BASIC.
Yeah true, that would be nice The only worry I have is that it would take a lot of space (and even waste some if some maps have several tiles that aren't animated like buildings)
Oh but how would that work? How would the tile data and maps look like? How would it detect which tile has to be animated and which one doesn't?
So does separate fonts mean separate files?
Quote from: DJ Omnimaga on December 31, 2010, 04:49:03 pmOh but how would that work? How would the tile data and maps look like? How would it detect which tile has to be animated and which one doesn't?Let's say that you have two tiles for the characters "A" and "B." Let's say that "A" displays a tree, and "B" displays water. You only want the water to move (an animation of 2 frames), not the tree.So your main font will contain graphical data for both "A" and "B". Your second font will ONLY contain graphical data for "B." Correlation will detect this kind of thing automatically. Does that make sense?Ln(1,1,"AABBBBAA" = Tree, Tree, 2-Frame Water, 2-Frame Water, 2-Frame Water, 2-Frame Water, Tree, Tree
Quote from: Hot_Dog on December 31, 2010, 04:54:51 pmQuote from: DJ Omnimaga on December 31, 2010, 04:49:03 pmOh but how would that work? How would the tile data and maps look like? How would it detect which tile has to be animated and which one doesn't?Let's say that you have two tiles for the characters "A" and "B." Let's say that "A" displays a tree, and "B" displays water. You only want the water to move (an animation of 2 frames), not the tree.So your main font will contain graphical data for both "A" and "B". Your second font will ONLY contain graphical data for "B." Correlation will detect this kind of thing automatically. Does that make sense?Ln(1,1,"AABBBBAA" = Tree, Tree, 2-Frame Water, 2-Frame Water, 2-Frame Water, 2-Frame Water, Tree, TreeBut how will it detect it? Will the second string look like " BBBB "? Because in that case it wouldn't even save a single byte of space.
Oh, I get it. So you define B as a tree in the wind by defining B1 as one frame of the tree, and then B2 as the other frame. But Correlation doesn't use B1 and B2, it only uses B and handles the change in sprites every time you redraw the string.
Quote from: graphmastur on January 01, 2011, 04:25:29 pmOh, I get it. So you define B as a tree in the wind by defining B1 as one frame of the tree, and then B2 as the other frame. But Correlation doesn't use B1 and B2, it only uses B and handles the change in sprites every time you redraw the string.I think you've got it. Let's say FONT1000.8xp contains characters for the letters "A" and "B", so "B" will contain one frame of the tree in the wind. "A" is defined as a rock. FONT2000.8xp contains the OTHER character for the letter "B", the other frame of the tree. Notice there's no "A" in FONT2000.8xp.real(FONT10001 means that FONT1000.8xp is your first font for your animations. real(FONT20002 means FONT2000.8xp is your second font. Like you said, Correlation uses only "B" and automatically handles the changes in sprites. Since there's no "A" in FONT2000.8xp, the rock won't move a muscle.I've decided to describe creating animated tiles in its own chapter. It's certainly a confusing topic, and I know that now
Yeah. One feature request, though, is changing tiles. If you've got a building that's standing in one scene, but gets blown up or something, you could use the same map (text) but different tiles.