Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] What state can you turn your character around?
#1
I have a character who is able to leap into rocks using itrk8 and he can leap from rock to rock. Once he touches a rock he goes to a certain frame. But the I can't get him to face the other direction using a simple hit_d. What state would I use?
Reply
Thanks given by:
#2
Make the first frame lead to the second frame with next: -xxx. that will turn your char around
EX:
    DC-Code:
<frame> zzz blah
   pic: 1  state: 3000  wait: 0  next: zzz  dvx: 9  dvy: 0  dvz: 0  centerx: 40  centery: 41  hit_a: 0  hit_d: xxx  hit_j: 0
   itr:
      kind: 0  x: 22  y: 27  w: 55  h: 27  dvx: 7  fall: 20  vrest: 10  bdefend: 16  injury: 45  
      effect: 3  
   itr_end:
   bdy:
      kind: 0  x: 22  y: 27  w: 55  h: 27
   bdy_end:
<frame_end>
 
<frame> xxx blah
   pic: 1  state: 3000  wait: 0  next: -yyy  dvx: 9  dvy: 0  dvz: 0  centerx: 40  centery: 41  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 22  y: 27  w: 55  h: 27  dvx: 7  fall: 20  vrest: 10  bdefend: 16  injury: 45  
      effect: 3  
   itr_end:
   bdy:
      kind: 0  x: 22  y: 27  w: 55  h: 27
   bdy_end:
<frame_end>
 
<frame> yyy blah
   pic: 2  state: 3000  wait: 0  next: 3  dvx: 9  dvy: 0  dvz: 0  centerx: 40  centery: 41  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 22  y: 27  w: 55  h: 27  dvx: 7  fall: 20  vrest: 10  bdefend: 16  injury: 45  
      effect: 3  
   itr_end:
   bdy:
      kind: 0  x: 22  y: 27  w: 55  h: 27
   bdy_end:
<frame_end>


EDIT:And shame on you, BP, for being ninja-ed by me :D.
Reply
Thanks given by: Darkangel
#3
next: -{framenumber} turns the char around. I forgot if that also works with negated hit_d-numbers but a negative next-value works definitely.

Such a state you described does not exist in the regular LF2, so I'd refrain from going that way.


shame on you, no one, for ninja-ing me :P
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#4
(01-06-2010, 11:03 AM)Blue Phoenix Wrote:  I forgot if that also works with negated hit_d-numbers but a negative next-value works definitely.

Negative values in hit_? tags DON'T work ^^
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by:
#5
i think Alblaka is right... "negative next" function does'nt work for "hit_x:" tag. my simple solution for these kind of problem is:

Used in spoiler bcus code tag doesn't support any tag (Click to View)
look at "xxx"'s and "yyy"'s "pic:", that makes the hit-d button looks nature, especially with wait 0, :P.
Reply
Thanks given by: Alblaka
#6
(01-07-2010, 09:28 AM)vandesdelca Wrote:  i think Alblaka is right... "negative next" function does'nt work for "hit_x:" tag. my simple solution for these kind of problem is:

Used in spoiler bcus code tag doesn't support any tag (Click to View)
look at "xxx"'s and "yyy"'s "pic:", that makes the hit-d button looks nature, especially with wait 0, :P.

*Pointing at post no.2*
Reply
Thanks given by:
#7
ahahaha sry, didn't read it clearly, just want to help to clean some of these questions. since i've created much of them.
so i guess this is solved then?
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)