07-24-2013, 06:52 PM
(This post was last modified: 07-26-2013, 03:33 PM by empirefantasy.)
@exg9 where is hit_d: O.o
its not to make next 260, but hit_d: 260.
Sprites and pics
Sprites can be loaded by 2 ways:
1. By exe file
2. By dat files
We can only edit those in dat files, which are used for DC things (like cars,weapon,bg,etc).
If we want to put some bmp files in a char,weapon or whatever (field) object it is, then we have to wrtie the following line in bmp part of the dat file. Let's take an example:
Now, let's split one of them:
file(0-69): sprite\sys\dennis_0.bmp w: 79 h: 79 row: 10 col: 7
Now analyse every element of it:
file(0-69): sprite\sys\dennis_0.bmp <---bmp file location
w: 79 <-- weight of one gird
h: 79 <--- height of one gird
row: 10 <--- number of grids in one row
col: 7 <--- number of girds in one coloumn
*(0-69) It is a refering number that helps you to show what number of pics does this bmp include.
Tip: When you are trying to add a new bmp, just copy another line and then make changes.
![[Image: U4FLPnC.png]](http://i.imgur.com/U4FLPnC.png)
It is important to know that every gird is seperated with one pixel line, so be careful when you calculate. Every count starts from 0.
WARNING
Computer only read what is written on dat file, it does not count girds that are out of determined size and number of (row/col) in dat file.
![[Image: AnjRDM9.png]](http://i.imgur.com/AnjRDM9.png)
Pics usage:
Coordinates
when you see x: 45 and y: 13 (numbers are the example), that means that we have coordinates (of a single pixel). When you see centerx: and centery: (in frame header) they show
the coordiantes of the shadow (the center pixel of the shadow). These images will help you how to find coordinates :D
The first pixel has coordinates (0,0) just like when they are in paint, but be carefull, when you are not in the pic 0, you must not put coordinates that are shown in pain, substract
number of passed girds multiplying weight/height of gird.
Refering system![[Image: huI4q2a.png]](http://i.imgur.com/huI4q2a.png)
Starting coordinate
![[Image: z5MDlfF.png]](http://i.imgur.com/z5MDlfF.png)
Coordiantes![[Image: gmNNwOY.png]](http://i.imgur.com/gmNNwOY.png)
Complex coordinates![[Image: Pboh5v1.png]](http://i.imgur.com/Pboh5v1.png)
Width and height (in bdy,itr)
when you see w: or h: it shows the filed height/width that it cover.
This is better than words![[Image: xywhcv8.jpg]](http://img128.imageshack.us/img128/7384/xywhcv8.jpg)
Now go experiment with those things, i will give you HW tomorrow
its not to make next 260, but hit_d: 260.
Sprites and pics
Sprites can be loaded by 2 ways:
1. By exe file
2. By dat files
We can only edit those in dat files, which are used for DC things (like cars,weapon,bg,etc).
If we want to put some bmp files in a char,weapon or whatever (field) object it is, then we have to wrtie the following line in bmp part of the dat file. Let's take an example:
|
DC-Code:
<bmp_begin> name: Dennis head: sprite\sys\dennis_f.bmp <-- the location of dennis face (used in character menu, must be addaed in characters) small: sprite\sys\dennis_s.bmp <--- the location of dennis small icon (used in battla mode, during the fight,etc) file(0-69): sprite\sys\dennis_0.bmp w: 79 h: 79 row: 10 col: 7 <-- dennis sprites file(70-139): sprite\sys\dennis_1.bmp w: 79 h: 79 row: 10 col: 7 <-- dennis sprites file(140-209): sprite\sys\dennis_2.bmp w: 79 h: 79 row: 10 col: 7 <-- dennis sprites walking_frame_rate 3 walking_speed 5.000000 walking_speedz 2.500000 running_frame_rate 3 running_speed 10.500000 running_speedz 1.650000 heavy_walking_speed 3.700000 heavy_walking_speedz 1.850000 heavy_running_speed 6.200000 heavy_running_speedz 1.000000 jump_height -16.299999 jump_distance 10.000000 jump_distancez 3.750000 dash_height -10.000000 dash_distance 18.000000 dash_distancez 5.000000 rowing_height -2.000000 rowing_distance 5.000000 <bmp_end> |
Now, let's split one of them:
file(0-69): sprite\sys\dennis_0.bmp w: 79 h: 79 row: 10 col: 7
Now analyse every element of it:
file(0-69): sprite\sys\dennis_0.bmp <---bmp file location
w: 79 <-- weight of one gird
h: 79 <--- height of one gird
row: 10 <--- number of grids in one row
col: 7 <--- number of girds in one coloumn
*(0-69) It is a refering number that helps you to show what number of pics does this bmp include.
Tip: When you are trying to add a new bmp, just copy another line and then make changes.
![[Image: U4FLPnC.png]](http://i.imgur.com/U4FLPnC.png)
It is important to know that every gird is seperated with one pixel line, so be careful when you calculate. Every count starts from 0.
WARNING
Computer only read what is written on dat file, it does not count girds that are out of determined size and number of (row/col) in dat file.
![[Image: AnjRDM9.png]](http://i.imgur.com/AnjRDM9.png)
Pics usage:
|
DC-Code:
<frame> 0 standing pic: 0 // in this case this frame is using pic number 0// state: 0 wait: 16 next: 1 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 hit_Fa: 235 hit_Fj: 245 hit_Uj: 260 hit_Dj: 270 bpoint: x: 40 y: 35 bpoint_end: wpoint: kind: 1 x: 40 y: 43 weaponact: 35 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> |
Coordinates
when you see x: 45 and y: 13 (numbers are the example), that means that we have coordinates (of a single pixel). When you see centerx: and centery: (in frame header) they show
the coordiantes of the shadow (the center pixel of the shadow). These images will help you how to find coordinates :D
The first pixel has coordinates (0,0) just like when they are in paint, but be carefull, when you are not in the pic 0, you must not put coordinates that are shown in pain, substract
number of passed girds multiplying weight/height of gird.
Refering system
![[Image: huI4q2a.png]](http://i.imgur.com/huI4q2a.png)
Starting coordinate
![[Image: z5MDlfF.png]](http://i.imgur.com/z5MDlfF.png)
Coordiantes
![[Image: gmNNwOY.png]](http://i.imgur.com/gmNNwOY.png)
Complex coordinates
![[Image: Pboh5v1.png]](http://i.imgur.com/Pboh5v1.png)
Width and height (in bdy,itr)
when you see w: or h: it shows the filed height/width that it cover.
This is better than words
![[Image: xywhcv8.jpg]](http://img128.imageshack.us/img128/7384/xywhcv8.jpg)
Now go experiment with those things, i will give you HW tomorrow

Chat
