Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Invisible after a few frames (Im A Noob)
#1
Hi, I got a problem giving my "Bandit" a few new moves, and I havn't found anything about this on the forums.

I was trying to give him a skill that allows him to make 2 kicks and then do a rushing attack forward (Like the one bat does), but around the time he does the rush-attack, he becomes invisible, and nobody can attack him untill I have pushed any of the contoll buttons (In other words, as soon as I start moving around, attack, jump or block they can attack me).

To create this attack I've been fooling around Data I've copied from Bat and some other character.

I think it stops working at frame 273-276, though I'm not sure.
Can somebody please help?
Code:
<frame> 270 punch pic: 103 state: 7 wait: 4 next: 271 dvx: 0 dvy: 0 dvz: 0 centerx: 36 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 mp: 50 wpoint: kind: 1 x: 37 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 25 effect: 1 itr_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 271 punch pic: 104 state: 7 wait: 6 next: 272 dvx: 0 dvy: 0 dvz: 0 centerx: 50 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 44 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 272 punch pic: 106 state: 3 wait: 3 next: 273 dvx: 20 dvy: 0 dvz: 0 centerx: 43 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 sound: data\007.wav wpoint: kind: 1 x: 44 y: 48 weaponact: 31 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 273 punch pic: 107 state: 3 wait: 2 next: 274 dvx: 10 dvy: 0 dvz: 0 centerx: 36 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 sound: data\017.wav wpoint: kind: 1 x: 42 y: 51 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 274 punch pic: 108 state: 3 wait: 4 next: 275 dvx: 10 dvy: 0 dvz: 0 centerx: 19 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 27 y: 50 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 35 effect: 1 bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 275 punch pic: 94 state: 3 wait: 4 next: 276 dvx: 0 dvy: 0 dvz: 0 centerx: 19 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 37 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 50 effect: 1 itr_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 276 punch pic: 107 state: 3 wait: 3 next: 277 dvx: 0 dvy: 0 dvz: 0 centerx: 36 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 37 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 48 effect: 1 itr_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 277 punch pic: 109 state: 3 wait: 3 next: 278 dvx: 0 dvy: 0 dvz: 0 centerx: 36 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 37 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 45 effect: 1 itr_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end> <frame> 278 punch pic: 109 state: 3 wait: 3 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 36 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 wpoint: kind: 1 x: 37 y: 46 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: itr: kind: 0 x: 10 y: 48 w: 78 h: 26 dvx: 15 dvy: -5 fall: 70 vrest: 13 bdefend: 70 injury: 400 effect: 1 itr_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: bdy: #bandit kind: 0 x: -5000 y: 33000 w: 10000 h: 500 bdy_end: <frame_end>

Ok, just to prevent misunderstandings, I do Not want my bandit to be invisible, I want him to fullfil the attack and then still be able to get attacked.
Reply
Thanks given by:
#2
This is the basic error occuring if you give a next: xyz to a not-existent frame...

*checking the code*

Hmm, can't find an error in it...
But it IS surely because somewhere you missnamed a frame or used a wrong next.
My Creations: (Click to View)

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


Greetz,
Alblaka
Reply
Thanks given by:
#3
why are there so many bdys and itrs? Maybe because he's doing some interactions? ._. - Simoneonjust copy the attack directly from bat, and change the pics to your liking ^^
and i'm not sure the problem, but if you need to press an arrow key or do an action before you are visible again, it's probably to do with one of the next:

edit@ above: ninjaed :(
[Image: UB2.gif]
FrozenFiren|Devid|Sprites

News of the day 19th Sep 10: Someone's back on track
Reply
Thanks given by:
#4
You're using state 7 in an attack frame? Try switching to state 3. 7 is for the defend frames. However, if that doesn't work, I agree with Forgetlatios, you should see if there's something wrong with the next frame, or if it doesn't exist.
Henry David Thoreau Wrote:
Let your life be a counter-friction to stop the machine.
Reply
Thanks given by:
#5
To Alblaka: I can't find any wrong frames either, and I checked that before I came here.

Forgetlatios: I dont want to copy Bat's attack, I just used it to create a Combo, I've already tried changing the last frames to Bat's attack, but that didn't work either.

Jed37: Huh, I didn't notice inserting any State7's, Too bad the problem is still there after I changed it to 3.

Sorry, None of your solutions seems to work...

To specify a little further, He does start the rush attack, but he becomes invisible during the final attack.
Reply
Thanks given by:
#6
If that doesn't work can you upload the character so we can have a proper look at what's wrong?
Reply
Thanks given by:
#7
Hmm... weird problem. I gave my bandit Julian's explosion, not intending it to disappear, but it just disappears after the attack happens. Weird huh?
Reply
Thanks given by:
#8
(03-31-2010, 05:53 AM)Darkangel Wrote:  If that doesn't work can you upload the character so we can have a proper look at what's wrong?

I don't know...
My version of lf2 is not the official version, and a few changes has been made, am I allowed to post that character here without the permission of the person who created it?
Reply
Thanks given by:
#9
    DC-Code:
<frame> 274 punch
   pic: 108  state: 3  wait: 4  next: 275  dvx: 10  dvy: 0  dvz: 0  centerx: 19  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 27  y: 50  weaponact: 30  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
 
    itr:
      kind: 0  x: 10  y: 48  w: 78  h: 26  dvx: 15  dvy: -5  fall: 70  vrest: 13  bdefend: 70  injury: 35  effect: 1
 
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
   bdy: #bandit
      kind: 0  x: -5000  y: 33000  w: 10000  h: 500
   bdy_end:
<frame_end>



the itr_end: is missing

I win. :) Nave saves the day
Reply
Thanks given by: Alblaka , RuneKiri , Jed37
#10
(03-31-2010, 06:01 AM)basement2 Wrote:  Hmm... weird problem. I gave my bandit Julian's explosion, not intending it to disappear, but it just disappears after the attack happens. Weird huh?

ehh we solved your problem already, look for missing ???_end: s, next: problems
[Image: UB2.gif]
FrozenFiren|Devid|Sprites

News of the day 19th Sep 10: Someone's back on track
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)