About 2 weeks ago i had an idea about this.Using a shield, (
http://www.lf-empire.de/en/lf2-empire/ad...ld).Shield is disappeared when character is falling,so i later i switched it in t0 object.
Here i will not explain noobish things,this
explanation is only for good DCers.
Then idea how to count money is this: we have shield frames with all numbers that will can be used,in fact not that much,just as much tags that can be in one frame.
We will have: frame billfold(0 money) frames of1 money,frames of 2,frames of 3 etc. When you get a +1 money,with an ik8 billfold/shield will go to f1.then if you get another +1,with billfold/pocked/shield will go to f2,if you get a +2 pocked will go to f4.(+1 money has an special bdy and +2 has another special bdy which interact only with one of ik8 which are in a frame)
I hope that you got my point here.
in all frames,there are special bdys which delete moneys.
But the problem is that this billfold/pocked will stay with char and will not go to use other ik8,so i add in one frame the ik8 which make it to stay with char and the other frame with all other ik8.
DC-Code:
<frame> 20 shield-abort!!!!
pic: 11 state: 3005 wait: 1 next: 100 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 100 shield-abort #0 money
pic: 0 state: 3005 wait: 0 next: 101 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 101 shield #0 money
pic: 0 state: 3005 wait: 1 next: 103 centerx: 25 centery: 40 dvy: 550
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 102 injury: 0
itr_end:
<frame_end>
<frame> 102 shield # 0 money
pic: 0 state: 3005 wait: 2 next: 103 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
<frame_end>
<frame> 103 shield-abort #0 money
pic: 0 state: 3005 wait: 0 next: 101 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 113 shield-abort #1 money
pic: 1 state: 3005 wait: 2 next: 110 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 110 shield #1 money
pic: 1 state: 3005 wait: 1 next: 112 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 111 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
<frame_end>
<frame> 111 shield # 1 money
pic: 1 state: 3005 wait: 1 next: 112 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
<frame_end>
<frame> 112 shield-abort #1 money
pic: 1 state: 3005 wait: 2 next: 113 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 123 shield-abort #2 money
pic: 2 state: 3005 wait: 2 next: 120 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 120 shield #2 money
pic: 2 state: 3005 wait: 1 next: 122 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 121 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 140 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 100 injury: 0
itr_end:
<frame_end>
<frame> 121 shield # 2 money
pic: 2 state: 3005 wait: 1 next: 122 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 140 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 100 injury: 0
itr_end:
<frame_end>
<frame> 122 shield-abort #2 money
pic: 2 state: 3005 wait: 2 next: 123 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 133 shield-abort #3 money
pic: 3 state: 3005 wait: 2 next: 130 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 130 shield #3 money
pic: 3 state: 3005 wait: 1 next: 132 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 131 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 140 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 150 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 100 injury: 0
itr_end:
<frame_end>
<frame> 131 shield # 3 money
pic: 3 state: 3005 wait: 1 next: 132 centerx: 25 centery: 40 dvy: 550
bdy: delete+2
kind: 0 x: 0 y: 5000 w: 30 h: 500
bdy_end:
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 140 injury: 0
itr_end:
itr: #place-correction +2
kind: 8 x: 0 y: 12000 w: 30 h: 500 zwidth: 20
dvx: 150 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 100 injury: 0
itr_end:
<frame_end>
<frame> 132 shield-abort #3 money
pic: 3 state: 3005 wait: 2 next: 133 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 143 shield-abort #4 money
pic: 4 state: 3005 wait: 2 next: 140 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 140 shield #4 money
pic: 4 state: 3005 wait: 1 next: 142 centerx: 25 centery: 40 dvy: 550
bdy: delete+1
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 141 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 150 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
<frame_end>
<frame> 141 shield # 4 money
pic: 4 state: 3005 wait: 1 next: 142 centerx: 25 centery: 40 dvy: 550
bdy:
kind: 0 x: 0 y: 4000 w: 30 h: 500
bdy_end:
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 140 injury: 0
itr_end:
itr: #place-correction +1
kind: 8 x: 0 y: 11000 w: 30 h: 500 zwidth: 20
dvx: 150 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 110 injury: 0
itr_end:
<frame_end>
<frame> 142 shield-abort #4 money
pic: 4 state: 3005 wait: 2 next: 143 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 153 shield-abort #5 money
pic: 5 state: 3005 wait: 2 next: 150 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 150 shield #5 money
pic: 5 state: 3005 wait: 1 next: 152 centerx: 25 centery: 40 dvy: 550
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 151 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
<frame_end>
<frame> 151 shield # 5 money
pic: 5 state: 3005 wait: 1 next: 152 centerx: 25 centery: 40 dvy: 550
itr: #place-correction
kind: 8 x: 0 y: 1390 w: 30 h: 500 zwidth: 20
dvx: 150 injury: 0
itr_end:
itr: #place-correction -2
kind: 8 x: 0 y: 20000 w: 30 h: 500 zwidth: 20
dvx: 130 injury: 0
itr_end:
itr: #place-correction -3
kind: 8 x: 0 y: 30000 w: 30 h: 500 zwidth: 20
dvx: 120 injury: 0
itr_end:
<frame_end>
<frame> 152 shield-abort #5 money
pic: 5 state: 3005 wait: 2 next: 153 centerx: 25 centery: 40 dvy: 550
<frame_end>
<frame> 107 shield-img
pic: 1 state: 3005 wait: 2 next: 1000 centerx: 25 centery: 40 dvy: 550
itr: #reflect-ball
kind: 0 x: 11 y: 260 w: 155 h: 115 zwidth: 25
dvx: -10 dvy: -15 fall: 70 vrest: 100 bdefend: 100 injury: 50 effect: 4
itr_end:
<frame_end>
<frame> 301 +1money
pic: 1 state: 3005 wait: 0 next: 301 centerx: 25 centery: 40 dvy: 550
itr: delete itself
kind: 8 x: 0 y: 4000 w: 30 h: 500 zwidth: 20
dvx: 305 injury: 0
itr_end:
bdy:
kind: 0 x: 0 y: 11000 w: 30 h: 500
bdy_end:
<frame_end>
<frame> 302 +2money
pic: 2 state: 3005 wait: 0 next: 302 centerx: 25 centery: 40 dvy: 550
itr: delete itself
kind: 8 x: 0 y: 5000 w: 30 h: 500 zwidth: 20
dvx: 305 injury: 0
itr_end:
bdy:
kind: 0 x: 0 y: 12000 w: 30 h: 500
bdy_end:
<frame_end>
<frame> 305 deletemoney
pic: 11 state: 3005 wait: 60 next: 1000 centerx: 25 centery: 40 dvy: 550
<frame_end>
|
I hope you can understand what i have written in this dat file.
So as you see moneys are in the same dat file and they are t0. Shop with weapons needs to be t0 too.And they counting system of buying is the same with increasing system.But to make it better (not just receive them by touching),it can be like this: when char press DJ,char go to a frame with special bdy,which is detected by the part of shop which has the weapon that we want to buy.Then that part of shop use a frame to opoint the weapon and have a special bdy which ork in the same way with collecting money.Example: we have 4 money,so pocked/shield/billfold is in frames 4 money,when we buy a stone that cost 3money,4 money frames has a ik8 which dedect -3 money and send it to 1 money frames.So frames need to have an ik8 for each weapon.But we can use different shields/billfolds for different stages,for different weapons.
Chars needs to do a special move to bring out the shield/pocked/billfold.
The big bug is that when stage is start,after some seconds,LF2 get crashed :mad::mad::mad2::mad::mad2:.As you see my dat file is uncompleted because,i have not finished:'( it,because LF2 is crashed.:mad::mad2::mad:
:(:'(:(
And if you want to see that bmp file
http://www.mediafire.com/?nuclhp27gz576q4
And this:
<bmp_begin>
name: Justin
head: sprite\sys\justin_f.bmp
small: sprite\sys\justin_s.bmp
file(0-11): sprite\sys\john_shield.bmp w: 50 h: 40 row: 12 col: 1
<bmp_end>
Justin is just random,as it is a t0.