High Resolution
Hey everyone, i noticed that there is no tutorial on how to make sprites with high resolution. In case you don't know what i mean. Imagin if you had a item on your server that had a 50x50 sprite. Thats what im gonna tell you guys how to do in this post.
However this tutorial will only allow the resolution limit to work for ingame equipment or entities using a idle texture (normal texture) If you don't know the difference between a Idle texture or a animated texture (a moving texture) you can look in your item/entity's xml code. You will see one of theese two tags:
Another note: Some of you, may think: "pff, what a idiot, why not just use remotetextures?" Well yea, this is something else.. I'll not even try to debate that anywhere on planet earth.
<Texture> </Texture> (This is a idle texture)
<AnimatedTexture> </AnimatedTexture> (This is a moving texture)
Without further to do, lets begin
Step 1
First go into the folder where you have all you'r assets. If you are using the AS3 source, they will be in the
src folder. Copy the image called: Embeds_lofiObj6Embed_. Paste it on your deskopt and rename it to: Embeds_50x50imgEmbed_
(You dont have to name it this, but i'll do for this tutorial.)
Open the image with your image editing software.
(i use paint.net. Wich is NOT the same as the paint you can open on your pc. The reason you should use that, is because it leaves a white background like when you save a jpg image file. Wich we dont want
This step can be confusing for some, if you are confused by now, ask for help below.
Now when the asset is clear, paste in your 50x50 sprites, and they MUST be 50x50. They can be smaller however but just be sure they fit in a box that is 50x50.
Step 2
Drag the image back into the client source, by simply: moving the image on top of the
"src" folder.
Step 3
Create a new actionscript file
(as file) in the src and call it: Embeds_50x50imgEmbed_
When thats done replace the entire file content with this:
Code:
package
{
import m*****re.*;
[Embed(source="Embeds_50x50imgEmbed_.png")]
public class Embeds_50x50imgEmbed_ extends m*****re.BitmapAsset
{
public function Embeds_50x50imgEmbed_()
{
super();
return;
}
}
}
Step 4
Go to: LoadEmbeds.as and find this code:
Code:
public static var lofiObj6Embed_:Class = Embeds_lofiObj6Embed_;
Underneath it paste this:
Code:
public static var 50x50imgEmbed_:Class = Embeds_50x50imgEmbed_;
then find this code:
Code:
AssetLibrary._05q("lofiObj6", new Embeds.lofiObj6Embed_().bitmapData, 8, 8);
Underneath that paste this:
Code:
AssetLibrary._05q("50x50img", new Embeds.50x50imgEmbed_().bitmapData, 50, 50);
Now you are done!
When you want to add a 50x50 item/entity to your server be sure to use this texture-tag(s) for the xml:
Code:
<Texture><File>50x50img</File><Index>0x00</Index></Texture><