![]() |
strange tiles...
i am having some truble under standing thies tiles...
in the script "dirt path" found in levels/npcs it uses numbers and letters (0xaa) how do thise number-letter-combonations corospond to the tile set, so i can make bush generators, or things like tree genorators :D Edit: here is a bigger example: PHP Code:
|
They're the hex-code of the tile. If you open the level editor and select tiles, and click the button at the top that looks like a circle divided into 4 parts, it'll give you the hex-codes of all the tiles you selected.
|
Quote:
|
1 Attachment(s)
I have never experimented with these npcs before, but I think I made a bush one as you requested. (Attached)
Enjoy. |
Quote:
PHP Code:
|
Quote:
BUT: This checks if a square (4 tiles) are grass ( if not, it stops ) PHP Code:
PHP Code:
|
so if i wanted it to set somthing down that was 4 tiles by 4 tiles would i do:
PHP Code:
PHP Code:
|
I think you're getting way over your head.
|
Quote:
|
So I don't come off as a complete ass(I'm an incomplete ass).
You're trying to learn something simple like placing tiles from a script that does way more, thus, is a lot more complex and can mislead you. What you posted serves more than to just lay tiles down, it also is used to calculate what specific tiles to place and where, to generate a path(though it doesn't do all that in the bit you posted, it's written to do so). It's all very complex. If you have the array of the bush already, which would be 4 tiles, you could do something like. PHP Code:
|
Make the object an image, use a class.
HTML Code:
function onCreated()HTML Code:
function onCreated() |
O.o?
|
Instead of replacing tiles for laying objects, just make an object layer making the tiles that you want into images. Seems more logical to me.
|
Not for this purpose. This is an editor NPC, like the path generator.
|
Quote:
|
Oh, I see!
Thanks |
theHAWKER, look before you leap. You're way over your head. First do some basic stuff, such as staff tools, and basic triggering scripts.
|
Ya, this would be a simpler way to look at making a bush generator:
PHP Code:
|
Quote:
|
Doesn't work that easy, but if you'd like to edit my script to show what you mean go ahead.
|
Quote:
|
I could have, and I guess it would have made a little sense. But either way the result is the same--I'm checking whether or not the four tiles are grass.
PHP Code:
|
Quote:
|
Quote:
|
<3 Skyld's style.
|
| All times are GMT +2. The time now is 09:36 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.