jumping actor
Riffel
Member Posts: 1,272
I try hard but cant acomplish...
when my main character aproaches a foe, the foe must star jumping.
I do a rule
Yini=position y
when actor near foe, change atribute jump to true
when jump is true interpolate Y to Yini+100
when y = yni+100 interpolate Y to Yini
all works ok, but the foe jump one time. the jump atribute dont back to false
any help?
when my main character aproaches a foe, the foe must star jumping.
I do a rule
Yini=position y
when actor near foe, change atribute jump to true
when jump is true interpolate Y to Yini+100
when y = yni+100 interpolate Y to Yini
all works ok, but the foe jump one time. the jump atribute dont back to false
any help?
Comments
thanks hrsmedia
www.marcosriffel.com
Or you can just have an accellerate behavior for the foe, simulating gravity. Then, when player is near foe, if foe collide with ground, set motion Y foe to "number". this way it will jump, and after touching the ground, it will jump again. No need for boolean or interpolate.
i dont know why the jump atribute dont return to false... i think it was a bug thing, and restart GS and after the computer...
do the Y < Yini and dont work.
seens when the main actor get close, then its start the jump if main character go away then works, theres some realtion with the proximity.
but i try make it jumping alone, independet of main charater like in loop, dont work... :-(
www.marcosriffel.com
some one knows about?
www.marcosriffel.com