local blood_fade_time = 5500 --time until blood will disappear (set to 0 for it to stay always) local spread_delay = 50 --how quickly the blood pool grows local starting_size = 50 --how big the blood pool starts (%) local size = {} local scale_time = {} blood = {} function blood_for_enemies_init(e) blood[e] = 1 Hide(e) CollisionOff(e) end function blood_for_enemies_main(e) CollisionOff(e) if blood[e] == 1 then Hide(e) StartTimer(e) timer[e] = GetTimer(e) + blood_fade_time scale_time[e] = GetTimer(e) size[e] = starting_size Scale(e,size[e]) else Show(e) if GetTimer(e) > scale_time[e] then scale_time[e] = GetTimer(e)+spread_delay size[e] = size[e]+1 Scale(e,size[e]) end if blood_fade_time > 0 and GetTimer(e) > timer[e] then Hide(e) blood[e] = 1 end end end