Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Big Problem
#1
Hello I have one big question.
I wanna make a charackter witch fight with knife and sword.
So I have added him knifes in his pics.
Now the Problem:
I want a move witsch make that my charackter chance his attack pics
So..
<frag>Attack 60 #knife
chance into
<frag>Attack 200 #sword

I had the idea that he sumon a sword.
But I don´t want that he lose his sword when he fall.
He should the sword only use when I active the move again.

Is this Posible?
Sorry for my bad english
Reply
Thanks given by:
#2
If you want him to use his sword everytime he attacks, you could give the attack frames a special bdy: (somewhere high) and when he uses the move he summons a ball that reacts to the body in the first attack frame( itr/k: 3) and makes the char go to the other ones.
Then you could also let the ball disappear after the attack so he uses his knife again.
Problem: He uses the first attack frame before he goes to the new ones.
Reply
Thanks given by:
#3
Much easier way: You do your char twice, once with sword, once with knive and make the different types transforming into each other (aka switching weapon).

Information about transforming can be found my SEARCH or MAINSITE...
My Creations: (Click to View)

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


Greetz,
Alblaka
Reply
Thanks given by:
#4
@Albaka:
That Idea i have to but i will make it by more charackter and my stage modus is very big so if i do it so it cost for every charackter 2 id and more than 400 don´t go.

@Reaper:
Could you write me here a exemle
I think you mean:


<frame> 59 KNIFE
pic: 70 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 24 y: 13 w: 33 h: 20000
bdy_end:
<frame_end>

<frame> 60 KNIFE
pic: 70 state: 3 wait: 1 next: 61 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 2 x: 27 y: 57 w: 40 h: 25 vrest: 1
itr_end:
bdy:
kind: 0 x: 28 y: 12 w: 33 h: 20000
bdy_end:
<frame_end>

<frame> 400 SWORDMOVE
pic: 70 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 24 y: 13 w: 33 h: 20000
bdy_end:
opoint:
actives for instance firens ball in the same hig (20000)

more i don´t understand
<frame_end>
Sorry for my bad english
Reply
Thanks given by:
#5
ok, in the first knife frame you need a second body. First the normal one so that the character can be hit and then a second one like this:
bdy:
kind: 0 x: 24 y: 20000 w: 33 h: 20
bdy_end:

so it starts at the height 20000

In your move you create a ball without bdy or anything, but with an itr like this:
itr:
kind: 3 x: -9999 y: 20000 w: 9999 h: 10 zwidth: 500 vrest: 1 catchingact: xx caughtact: 400
itr_end:

So it has the same height but works on the whole stage/whatever. It should have a loop of frames( 40-41-42-40-...) to make it last forever. Catchingact: xx means that the ball goes to frame xx( 40 maybe or something else if you want him to disappear and not work again) caughtact: makes the caught character go to frame 400, means to the new sword attack( where you don't need a special bdy: anymore)

One thing to remember: A wide itr: needs some time to "scan" the field so give the frames a wait: 4 or something.(I guess you could also make a big bdy: and a small itr...)

@everybody: correct me if i made a mistake.
Reply
Thanks given by:
#6
@Reaper

did you mean it so:
<frame> 59 KNIFE
pic: 70 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 24 y: 13 w: 33 h: 20000
bdy_end:
bdy:
kind: 0 x: 24 y: 13 w: 33 h: 79
bdy_end:

the ball:
<fraME> 70 BALL
pic: X state: 3 wait: 4 next: 60 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 3 x: -9999 y: 20000 w: 9999 h: 10 zwidth: 500 vrest: 1 catchingact: xx caughtact: 400
itr_end:


<fraME> 60 BALL
NEXT: 61
<FRAME> 61 BALL
NEXT:70
so that that itr go foerever

what now show it me please (i don´t spreak englisch well so i don´t understand what you mean exatly)
i understand what is the plan but not how to make?
Sorry for my bad english
Reply
Thanks given by:
#7
It's nearly correct, just swap y: and h: in the bdy: of the knife frame as y: is where it starts and h: how far it goes from that point on and the itr: should be in all of the ball-frames( + it should be catchingact: 60 or something.)
Ok, so you create the new ball's data, give it an id: and make a move where the char summons it. Make sure that the ball is invisible.
Well, that mainly was it. When you punch, your character can get hurt when something hurts him very far up. The itr will do that and will lead him to frame 400.( itr/k:3 means catching. It catches the character and leads him and the ball itself to special frames determined in catchingact: and caughtact:.)
Now just copy the attack frames and edit the frame and sprite numbers to get the sword attack. I would recomment to use a frame number smaller than 400 as it otherwise might not work.
Reply
Thanks given by:
#8
(08-07-2009, 04:32 PM)Gangster95 Wrote:  @Albaka:
That Idea i have to but i will make it by more charackter and my stage modus is very big so if i do it so it cost for every charackter 2 id and more than 400 don´t go.

Are you kidding? Even if i would clash up all mods&chars on my harddrive into the data.txt, i would still not reach the 400-limit (only it would take some minutes to load XD).

I couldn't even think of any project that could use THAT much Ids...

And btw, you talked about ONE char using knife/sword, not, that you need a method for EVERY char ^^
My Creations: (Click to View)

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


Greetz,
Alblaka
Reply
Thanks given by:
#9
(08-07-2009, 07:07 PM)Alblaka Wrote:  
(08-07-2009, 04:32 PM)Gangster95 Wrote:  @Albaka:
That Idea i have to but i will make it by more charackter and my stage modus is very big so if i do it so it cost for every charackter 2 id and more than 400 don´t go.

Are you kidding? Even if i would clash up all mods&chars on my harddrive into the data.txt, i would still not reach the 400-limit (only it would take some minutes to load XD).

I couldn't even think of any project that could use THAT much Ids...

And btw, you talked about ONE char using knife/sword, not, that you need a method for EVERY char ^^
Giving just a few facts: I once had a mod which (as it was using PNGs instead of bitmaps) ate up 1.5gigs of RAM and was having 100 objects. Having that many objects makes the loading time already 1-5mins, depending on how good your computer is.
Now, imagine the same deal with 400 objects. Loading time increases exponentially, so I suspect it to be 5-40mins. Sprite-flipping costs pretty much time anyways. Besides that I wonder what you'll have then. Going from 1 char associated with 3 extra files (worst-case scenario) and 20 weapons. You'd have 400-20=4x --> 95 characters. Well, lol.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

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

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#10
@Reaper

like so:
<frame> 59 KNIFE
pic: 70 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 24 y: 20000 w: 33 h: 20000
bdy_end:
bdy:
kind: 0 x: 24 y: 13 w: 33 h: 79
bdy_end:

NEW BALL:
frame 40
pic: X state: 3 wait: 4 next: 41 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 3 x: -9999 y: 20000 w: 9999 h: 10 zwidth: 500 vrest: 1 catchingact: 60 caughtact: 350
itr_end:

frame 41
pic: X state: 3 wait: 4 next: 40 dvx: 0 dvy: 0 dvz: 0 centerx: 33 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 3 x: -9999 y: 20000 w: 9999 h: 10 zwidth: 500 vrest: 1 catchingact: 60 caughtact: 350
itr_end:

is this right so?
catchingact: 60
caughtact: 350
h + y: 20000
Sorry for my bad english
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)