Problem with Sniper_Scope Sprite

I see a white color in the background.

By -Anubis- 1 year ago

The problem is simple, when I generate the file sniper_scope.spr with the spritewizard, and put this into my cstrike/sprites folder, when I go to play, I see this:

http://imageshack.us/f/39/screenmb.jpg


This is what I do:

  1. Open my Photoshop, and I made a New File 256 x 256 Pixels.
  2. add the effects
  3. Image--> Mode--> Indexed Color
  4. File--> Save As--> sniper_scope.bmp (8 bits)
  5. Now I Open the Sprite Wizard, select my file, and save it as alphatest 256 colors.
  6. Save the sniper_scope.spr into my Cstrike/sprite Folder

Now I go to play, and don't work =(

If the black edge is observed in detail, it is possible to see something of transparency.

Why it does not work ?

3 posts 722 views
  • You must be a member

Replies

  • surabaya_190889's Levels
    • P1: Beggar
      Points: 95
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 1 year ago

    i make that my sprite only use ms paint in 256x256, save as bmp 24bit map.. and i convert with sprwiz to be spr format.. same as if i use photoshop, i just make blank template in 256x256 pixel, add a picture and save as bmp 24bit map.. but usually if add a picture that usually in jpg format as sprite the image will be litle crowded.. that's why i'm only use horizontal, vertical line and some number for detail..

    User Title
    spetsnaz
  • -Anubis-'s Levels
    • P2: Drudge
      Points: 7,077
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 1 year ago

    Ok, I go to test this. Thanks for response...

    In internet all tutorials has created using a Paing.. hehe

    User Title
    Dead From Above
  • -bastard-'s Levels
    • P5: Peddler
      Points: 88,398
    • E1: Helper
      EF: 1
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 1 year ago

    Oh shit I wrote a tutorial about this.

    However, do not fret! I know what the problem is!

    Before you feed the sprite into spritewiz, you need to save it as a 256 colour .bmp file.

    This essentially limits the picture to 256 unique colours. These colours are placed in order, and are numbered (1 - 256). The LAST colour in the palette will be what appears as transparent in the game when it has been converted to a sprite.

    What you need to do is:
    1. make 8bit .bmp (256 colour palette)
    2. Find a way to edit the colours in the palette (I don't know how to do that in photoshop, google it)
    3. Change the last colour in the palette to red (RGB colour code 255 0 0). This will be your transparent colour
    4. Make sure that that spesific colour is not anywhere else in the palette (if it is it won't work).
    5. Apply that specific colour to the areas you want to be transparent
    6. save, compile, game!

    EDIT: the colour you want to use as the transparent colour can be any colour you want. I just used red as an example.

    User Title
    asdasd
  • You must be a member