Hi!
Why, in this COG, does the touched message, sort of react, but won't continue?
I send off a series of grenades, all moving at a 10th of their speed, created 0.01 seconds between, and only every 10-100 gets bounced off. Why is that?
/Edward
Why, in this COG, does the touched message, sort of react, but won't continue?
Code:
# Flipper
#
# By Edward
symbols
message touched
message entered
message timer
surface flip0 linkid=1,mask=-1
surface flip1 linkid=1,mask=-1
surface flip2 linkid=1,mask=-1
surface flip3 linkid=1,mask=-1
surface flip4 linkid=1,mask=-1
surface flip5 linkid=1,mask=-1
sound flips
flex strength
vector vec local
int i local
end
#
code
entered:
touched:
if(GetSenderID()!=1) return;
KillTimerEx(4);
for(i=0; i<6; i=i+1)
{
StopSurfaceAnim(flip0);
SurfaceAnim(flip0, 16, 1);
}
PlaySoundThing(flips,GetSourceRef(),1,-1,-1,0);
vec=GetThingVel(GetSourceRef());
ApplyForce(GetSourceRef(),VectorScale(vec,strength));
SetTimerEx(1,4,0,0);
return;
timer:
if(GetSenderID()!=4) return;
for(i=0; i<6; i=i+1)
{
StopSurfaceAnim(flip0);
SetWallCel(flip0,0);
}
return;
end
I send off a series of grenades, all moving at a 10th of their speed, created 0.01 seconds between, and only every 10-100 gets bounced off. Why is that?
/Edward
