var cat = new Sprite(0, -50, "img/cat.svg");

cat.addCostume("img/cat_2.svg");

cat.onGreenFlag( function(){
	setRotationStyle("flat");
	forever {
		move(10);
		bounce();
		nextCostume();
		wait(0.1);
	}
});