Hi again, sorry for lurking here and there, but I recently got back here and I need help with the new projectile system: I was trying to get my character to throw a "knife" projectile, but after launch, the projectile stays in the air until some enemy rushes and gets hit by it. Here's the code:
And here's the freespecial:
And the result is the screenshot (sorry if someone gets offended, it's an upskirt so I had to censor it). Someone can help me with this problem? I really want to keep updating this to the new entry. Thanks in advance.
Code:
//Projectile entity
name spark
type projectile
health 1
remove 0
anim idle
loop 1
delay 8
followanim 1
followcond 1
offset 21 11
attack.damage.force 25
attack.position.x 0
attack.position.y 0
attack.size.x 48
attack.size.y 16
attack.reaction.reposition.direction -1
frame data/chars/moon/Shot/spark0.gif
frame data/chars/moon/Shot/spark1.gif
anim follow1
delay 8
offset -17 12
frame data/chars/moon/Shot/spark2.gif
offset -21 20
frame data/chars/moon/Shot/spark3.gif
offset -23 31
frame data/chars/moon/Shot/spark4.gif
frame data/chars/misc/empty.gif
And here's the freespecial:
Code:
//Freespecial
anim freespecial
custknife spark
throwframe 4
delay 20
offset 101 141
energycost 100 1
frame data/chars/moon/freespecial01_01.png
delay 20
frame data/chars/moon/freespecial01_02.png
delay 10
frame data/chars/moon/freespecial01_03.png
frame data/chars/moon/freespecial01_04.png
delay 20
@cmd mana 0
frame data/chars/moon/freespecial01_05.png
And the result is the screenshot (sorry if someone gets offended, it's an upskirt so I had to censor it). Someone can help me with this problem? I really want to keep updating this to the new entry. Thanks in advance.