Little Fighter Empire - Forums
type 3 timers... - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+--- Thread: type 3 timers... (/showthread.php?tid=2165)



type 3 timers... - dubbleD - 02-21-2009

so lemme get this straight, im trying to make a function on the ball.
first, it has a timer and i ik8'ed it to my character. when the timer ran out, i wanted it to go to the next ik8 sequence i made and prepared another time. but the timer only worked for my first sequence when i had 3.
is there a way to work around it?
i first looped 2 frames and added a timer hit_a: 1 to it.
then when it was finished, i hit_d: to next looping frames.
but the timer didnt work. it just jumped to the end which had no timer. i assumed that it just ran right through all the frames ignoring the other data and found the dead i made. is that right?
heres data:



RE: type 3 timers... - MH-Razen - 02-21-2009

<frame> 150 bar_empty
pic: 12 state: 3005 wait: 2 next: 151 centerx: 17 centery: -440 hit_a: 1 hit_d: 158 dvx: 550 dvy: 550 dvz: 550
itr: kind: 8 x: -300 y: -9000 w: 600 h: 300 dvx: 150 itr_end: #characters stick
itr: kind: 8 x: -300 y: -11000 w: 600 h: 300 dvx: 13 itr_end: #delete extra
<frame_end>
<frame> 151 bar_empty
pic: 12 state: 3005 wait: 2 next: 150 centerx: 17 centery: -440 hit_a: 1 hit_d: 158 dvx: 550 dvy: 550 dvz: 550
itr: kind: 8 x: -300 y: -9000 w: 600 h: 300 dvx: 151 itr_end: #characters stick
itr: kind: 8 x: -300 y: -11000 w: 600 h: 300 dvx: 13 itr_end: #delete extra
<frame_end>
if you want to use the ik8 to stick an object to a char then the dvx need to be the frame you're just in. Test it with this and tell me if it work :p


RE: type 3 timers... - Silverthorn - 02-21-2009

timer thingy: EVERY object has, as long as there are no specialties (weapon_hp, id: 52, etc), 500hp. This is also used for balls. What timer does: depending on how big hit_a is, the amount of hp will be decreased. If the object has run out of hp, it'll go to the hit_d-frame. As it won't recover hp, the other timers will run out immediately (as in no hp left). Solution: opoint a new object, either one that replaces your current object or an injury: -500 object @ state: 18


RE: type 3 timers... - Lauli - 02-21-2009

Why don't you just spawn a new object that does the exact same thing?


RE: type 3 timers... - dubbleD - 02-22-2009

yeah ive come to that conclusion.
im not fully sure if i have it working...
its uhm...not spawning it the way i hoped it to...

EDIT: roar it wont opoint the object....