![]() |
Need Help With Tiles!
I Need Help!!
I Created An Tile But I Dunno How To Open It In Graal Editor Someone Help Me??? |
Why so much caps ?
Simply use a script like function onCreated() { addtiledef("thetilesetname.png,#L,0); } replace with 1 if your tileset is type1. You should visit the graal bible for lot of tips. |
Ok, first off, tilesets in the editor(or any graphics, for that matter) will not work unless they are indexed. If you have photoshop, open the image up and go to image>mode>index and click ok. If you don't have photoshop, I don't know how to help you there. Saving it in MSPaint though, will not index the image and will instead save it as 24bit(which the Editor can not render).
Otherwise, you want to do something similar to what alex said... but I'll guide you through the steps. His won't be able to be used offline, in the editor, though. addtiledef imagename.png,levelprefix,0; Now imagename.png is, of course the image of the tileset. levelprefix is the prefix of the levels you want the tileset applied to. For example, if you have a gmap full of levels named city_a01, city_a02, city_a03 and so on, you can simply do: addtiledef citytileset.png,city_,0; That will make the tileset work for every level that starts with city_. If you want it applied specifically to a level... addtiledef citytileset.png,city_a01,0; Will apply it only to the level city_a01, no where else. |
Quote:
From there you can decrease the color depth to 8-bit and save and it will work in editor. |
?? stil dunno if i created the tile where i have the put the tile in?? i tried function onCreated()
{ addtiledef("thetilesetname.png,#L,0); } And it still wont work if i change the name to the tiles name .... i think the problem is i dunno where to put the tile ??? |
is this offline or online?
|
Quote:
|
omgosh do anybody knows it?? X_X
|
Just one question, did you create one tile, as a 16x16 image or a whole tileset?
|
i created a whole tileset
|
Did you read my post?
|
ye but i dunno how to do it?? x_X
|
can anybody help me x_X?!
|
Quote:
|
if i can ask why u need the properties xD??
|
Quote:
|
Can you upload your tileset? I have a feeling that it might have been saved wrong.
|
Quote:
|
You don't need to ask why Darlene needs properties, just right click the image, click properties and tell us more about it, for exemple if the image is 8bits (in details)
This can help us to help you ^^ |
i putted this at the npc in graal ed
//#CLIENTSIDE if (created) { removetiledefs; addtiledef ngc.png,,0; } And If I Try It I Only Get Black Lines In The Editor |
Quote:
|
???
|
Quote:
|
Just to tell u all, This is someone i know. We are both dutch, Someone bought him a server as Birthday-present, But he doenst know anything about scripting etc. This guy is not really known with those things, It is hard for him to understand. If i am right he never did anything like developing.
|
Quote:
|
I personally dont really know alot about those things, All i can is LAT lol ;)
|
Quote:
To convert the .gif image to a .png image using gif2mng, simply drag and drop the image on top of the program and it will output the new file in the same folder that the program is in. After you've converted your image, make sure the image is in the same folder as your Graal editor program. If you post your tileset image I can convert it to the correct format for you without a loss of image quality. |
Quote:
|
| All times are GMT +2. The time now is 12:40 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.