Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] ball that follows you but acts independently
#1
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?
Reply
Thanks given by:
#2
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>
Reply
Thanks given by:
#3
that i know, but how to make it follow you? even if you change sides it switches sides too
Reply
Thanks given by:
#4
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.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

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

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#5
how about switching sides? it's following me now but only faces one side
Reply
Thanks given by:
#6
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<
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

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

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#7
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
Reply
Thanks given by:
#8
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...
Reply
Thanks given by: wingsofthewind
#9
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
Reply
Thanks given by:
#10
(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)
[Image: random.php?pic=random]
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Reply
Thanks given by:




Users browsing this thread: 6 Guest(s)