Project X Forums
http://px.worms2d.info/forum/

How to create Weapons Image?
http://px.worms2d.info/forum/viewtopic.php?f=3&t=13
Page 1 of 1

Author:  Lulinha [ Thu Oct 29, 2009 11:32 pm ]
Post subject:  How to create Weapons Image?

I saw the Gravity Gun(Px Scheme),I see the weapon,(Im new in forum but i play a project X a lot time) and have a image of weapon, and if anyone can help how to i put a script(if is this name) i will say thank you...

Author:  Undefined [ Sat Nov 07, 2009 8:49 pm ]
Post subject:  Re: How to create Weapons Image?

It's not with script engine, use the table weapons editor.

Author:  Lulinha [ Sun Nov 08, 2009 1:01 am ]
Post subject:  Re: How to create Weapons Image?

But in the gravity gun, the worm is with the biggest weapon of game, and the worm was black and white.

Author:  Undefined [ Sun Nov 08, 2009 8:44 pm ]
Post subject:  Re: How to create Weapons Image?

Change your colors in Worms Armageddon options.

Author:  TwilightShadow [ Mon Nov 09, 2009 2:56 pm ]
Post subject:  Re: How to create Weapons Image?

!All this is based only on what i remember. There might be mistakes!

To change weapon IMAGE (that displays in weap table) u need to:
1) Draw it xD. I dont remember the rezolution so u'd better export weapon icon to .bmp file from gfx.dir using Sprite Editor ("Extract,convert, log" button).
2) Edit that file however u wish.
3) Then pack it into .dir archive (not in gfx.dir of course xD). Using "Reconstruct from log" button import ur image into sprite editor by selecting ur log and save new .dir
4) Attach that .dir to ur .pxs file using PX Scheme Ed.
5) Set path to ur new icon in weapon settings. For example we have "new.dir" file and "newzook.img" icon in it. We need to
5.1) Tick "DIR name" checkbox.
DO NOT ENTER QUOTATION MARKS
5.2) Enter "Attach\new.dir"
5.3) Then Enter "newzook.dir" into "Grid IMG" textbox.
6) Be happy.

Now about SPRITES.
1), 2), 3) and 4) are as for IMAGES but in 1 you will recieve not only .bmp but also .spd file. In .spd files data about sprite rezolution, number of frames and other things is stored. If u changed the size or nomber of frames u need to change .spd file too using Notepad.
In 3 u also need to import that .spd file using "Convert and Add" button.
5) Now u need to replace one of the sprites with the new one u made. Go to SPRITE OVERRIDING.
For example we have "new.dir" archive and "newzook.spr" sprite.
5.1) Select the sprite number to replace.
DO NOT ENTER QUOTATION MARKS
5.2) Enter "newzook.spr" into "New sprite name" textbox.
5.3) Input number of weapon table u wan to override sprite in (0=in all tables)
5.4) Enter "Attach\new.dir" into "Dir file name" textbox.
6) Apply this sprite to weapon using Weapon Settings\Animation by entering the sprite number into "Sprite number" textbox.

Author:  TwilightShadow [ Mon Nov 09, 2009 3:06 pm ]
Post subject:  Re: How to create Weapons Image?

Ah forgot a small advice. If u r not satisfied with colours u have in image/sprite better take colours from other images/sprites, then convert ur image/sprite to RGB and use this colour. Never paint with ur own colours cuz they will display in WHITE.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/