Basic question, Followanim and followcond

machok

Well-known member
I just want to make a very simple animation attack for enemy
this enemy will do attack1 consecutively up to 3x only if conditions are met but why does followanim always skip all animations except 1 animation which has attackbox?
 
Solution
Ok I found better solution for now, I use with rand %100; attackf and attackE seems to work the way I want

Edit: After few tries, No this is not the best solution :(

Edit2: Real solution is here:
works perfectly like using followanim and followcond while doing all the animations frames
If there's no attack box followcond {value} has nothing to check If it hits, it only works if there is an attack box that's why it skips if there's no attack box, you shouldn't use followcond {value} if there's no attack box.
 
I think so too
hmm... but i'm pretty sure other enemy (Damnd) I set it with followanim-followcond some time ago and I don't seem to find any problem
Code:
anim    attack
    followanim    101
    followcond    3
    range    0 70
    loop    0
    delay    20
    offset    85 173
    frame    data/chars/damnd/a101.gif
    delay    10
    frame    data/chars/damnd/a102.gif
    frame    data/chars/damnd/a103.gif
    attack11    101 97 55 34 17 0 0 0 25 0
    bbox    71 85 34 73
    frame    data/chars/damnd/a103.gif
Code:
anim    follow101
    followanim    8
    followcond    3
    range    0 70
    loop    0
    delay    20
    offset    85 173
    bbox    71 85 34 73
    frame    data/chars/damnd/a101.gif
    delay    10
    frame    data/chars/damnd/a102.gif
    frame    data/chars/damnd/a103.gif
    attack11    101 97 55 34 17 0 0 0 25 0
    frame    data/chars/damnd/a103.gif
 
Last edited:
Ok I found better solution for now, I use with rand %100; attackf and attackE seems to work the way I want

Edit: After few tries, No this is not the best solution :(

Edit2: Real solution is here:
works perfectly like using followanim and followcond while doing all the animations frames
 
Last edited:
Solution
Back
Top Bottom