Little Fighter Empire - Forums
[solved] ball that follows you but acts independently - 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)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14)
+---- Thread: [solved] ball that follows you but acts independently (/showthread.php?tid=1496)

Pages: 1 2


[solved] ball that follows you but acts independently - wingsofthewind - 11-07-2008

how can i make a ball stay at my character's back all the time, repeating frames with catch itr so that if anyone goes near the ball the ball will execute an attack no matter what frame the character is in?


RE: ball that follows you but acts independently - Ascor - 11-07-2008

Trough itr kind: 8
make a several itr for the attack of the enemy :D
mainsite search first please ;)
like *example*
Code:
<frame> 0 ball
Blablabla
itr: kind: 8 x: coordinates of you character (give him a body at -3000 while summoning the ball) y: (look at x)
dvx: 0 dvy: 0 fall: 0 bdefend: 0 injury: 0 itr_end:
Itr: kind: 0 etc etc
<frame_end>



RE: ball that follows you but acts independently - wingsofthewind - 11-08-2008

that i know, but how to make it follow you? even if you change sides it switches sides too


RE: ball that follows you but acts independently - Silverthorn - 11-08-2008

k: 8 sticks to any type-0-bdy. So, if you have a unique bdy @ y: 3000 and the ball has an itr/k: 8 @ y: 3000, it'll follow you all the time. Regardless of the team you're belonging to.


RE: ball that follows you but acts independently - wingsofthewind - 11-08-2008

how about switching sides? it's following me now but only faces one side


RE: ball that follows you but acts independently - Silverthorn - 11-08-2008

oh, that's what you mean! I thought with switching sides you mean changing teams:D

Yea, that's a little difficult with that method. You might want to check out >this thread<


RE: ball that follows you but acts independently - wingsofthewind - 11-08-2008

ok i just found an example. it's something like zxcv's mod ntsd, this character called chiyo. she summons two puppets that switch positions whenever she faces the other side. how does that work?

ok i got that i have 2 sprites one for back one for front, and 2 extra bodies. one to left of chara and one to the right, at different heights. the ball has 2 itr k8, at both heights but only to the left. if the character turns the higher itr will make the ball go to the opposite frame with the opposite sprite.

now how to make it attack anything that comes near to it? if i use itr k:8 the ball will move to the enemy, so i guess it's not a good idea, but i'm not familiar with the catchact thing either. now that it follows me around it can't do anything else T.T


RE: ball that follows you but acts independently - TheNave - 11-11-2008

Oh ya I made Chiyo^^ really complicated stuff, most difficult char I ever did

For the switching around thingy:

well I made it like this:
first you need 2 unique bodys, one at f.e. y: 1000 and the other at y: 5000
the interseting thing is the x:/w:,
on the y: 1000 bdy you just use the normal bdy coordinates(x and w) at your character, so that the object sticks on him with the itr/kind: 8
that's the thing you already did

that switching around is caused by the x:/w: of the bdy with y: 5000... make it like x: 0 w: 5

and on the object you need a second itr/kind: 8, one with an x: 60 y: 5000 w: 50 h: 500


so if the char stands normal the area of the itr (with x: 60 w: 50) will miss the area of the bdy (x: 0 w: 5) but if your char turns around, the x coordinates of the bdy will also turn around and then the bdy's affected by the itr

on the itr you use a dvx: to a frame on which the object turns around (next: -X)


hope that helped^^

Quote:now how to make it attack anything that comes near to it? if i use itr k:8 the ball will move to the enemy, so i guess it's not a good idea, but i'm not familiar with the catchact thing either. now that it follows me around it can't do anything else T.T
That problem I don't quite understand what ya mean...


RE: ball that follows you but acts independently - wingsofthewind - 11-12-2008

yupp that's what i did but thx anyway TheNave. the second part is like, i tried to let the ball 'catch' anything that is near my character, with an itr kind 3 but the ball doesn't go to the frame i want. it's supposed to have the effect like the enemy comes near to me and the ball will attack the enemy automatically


RE: ball that follows you but acts independently - MH-Razen - 11-12-2008

(11-12-2008, 10:29 AM)wingsofthewind Wrote:  yupp that's what i did but thx anyway TheNave. the second part is like, i tried to let the ball 'catch' anything that is near my character, with an itr kind 3 but the ball doesn't go to the frame i want. it's supposed to have the effect like the enemy comes near to me and the ball will attack the enemy automatically



actually a bit more details might help now. What exactly does attack`The char or the ... attack which is around him? WHat is it in game? some kind of animal? If you describe the attack how it will LOOK like we might be able to find another solution, for now I can't think of one sorry :(

(beside: itr/kind 3 area in the type3--object which catch the char..., but... not sure ... this work, but itr/kind 3 in type 3 is a bit freaky :p)