-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automapping: Double Width/Height Tile Rules #62
Comments
FYI, I'm using this for a silverlight game that's available at http://smote.com Give it a shot. I'd really like to see this happen so I'll put a bounty on it. I'll paypal $50 to whoever implements the fix and sends me a build before 9/30/2011. |
Hello Lone-Coder, When I understand you right, the problem is this rule http://dl.dropbox.com/u/6520164/tiled/problematic_rule.png If you are not interested to have it repeated exactly like A-B-A-B-A-B and so on, but in a random fashion, If you need to have it exact A-B-A-B (which is indeed a serious cool and needed feature), I'll give it a try on the weekend. |
So the solution as of now is this: Unfortunately this solution takes a lot of CPU time, so it is switched off by default. |
Here is a Windows build for tiled, |
That works perfectly Stefan. Thank you so much! You rock! I've sent over the paypal payment. Bryan Livingston |
@lone-coder: |
* setupRulesMap, which reads in maps properties was rewritten to be more stable. It emits warnings in case of unknown properties. The capitalisation of the string properties is ignored. * when not having properties set, you need to have good defaults (set in constructor now) * A new property "NoOverlayingRules" is introduced. This fixes mapeditor#62 Rules, which still apply, when they are shifted off by one, are handled properly now. This is achieved by checking if the region, at which the rule should applied to, has not been touched by the current rule already. This additional check introduces needs a lot of time, so it is turned off by default, which also ensures compatibility to lower versions. Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
With the current automapping it's not possible to have a rule apply a tile that is "double wide".
So I've got some graphics from http://www.lostgarden.com/2006/07/more-free-game-graphics.html which are awesome.
Some of the tiles though are designed to be tiled two at a time. For instance the wall on this image: http://imageshack.us/photo/my-images/708/internalwalls.png/
There's no way to make a rule to automatically place these double wide tiles because the same rule gets repeated over each tile, so only the left row of tiles in the rule gets applied over and over.
There needs to be a change in the automapper logic that says that if a tile has already been set by this same rule then not to overwrite it. Maybe put it behind a flag.
Example map with rules and tiles.
http://www.mediafire.com/?ejn1vw4c2ycikdc
Feel free to use this example map any way you'd like. You can even include it in the distro if you'd like.
The text was updated successfully, but these errors were encountered: