Fix Animation and delay system bugs and add new feature to ranger example