templates/platform/scripts/items/coin.js in entityjs-0.4.0 vs templates/platform/scripts/items/coin.js in entityjs-0.4.1

- old
+ new

@@ -1,7 +1,7 @@ re.c('coin') -.requires('item flicker') +.requires('item animate') .defines({ touch:function(){ this.collect(); }, @@ -15,13 +15,18 @@ }) .init(function(){ //add comp for searchability this.comp('coin'); + //create new sound effect this.sfx = re.e('sound coin.sfx'); - this.addFlicker('glow', -1, 1800, '14 15 15'); - this.flicker('glow'); + //setup animations to play + this.anis = { + glow:[1800, [14, 15, 15], -1] + }; + + this.animate('glow'); }) //accepted tile frames in items.png which will become coins .alias('t14') .alias('t15'); \ No newline at end of file