
90.2k Views
8.4k Executions
fd neko
Universal Script 📌
nicn1202ffPublished 10
3 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
good
Updates
Script edited: Create script
//Neko Class
var NekoNin = gamecore.Base.extend('NekoNin',
{
nekoAnim:'',
bmpAnimation:'',
spriteSheet:''
},
{
hp:1000,
lastFireTime:0,
nekoState : 'nekoIdle',
nekoState2 : 'nekoIdle',
nekoJump : false,
jumpSpeedLimit : 15,
jumpSpeed : 15,
init: function()
{
this.Class.nekoAnim=new Image();
this.Class.nekoAnim.onload = this.handleImageLoad;
this.Class.nekoAnim.onerror = this.handleImageError;
this.Class.nekoAnim.src= 'img/MonsterARun.png';
console.log(this);
},
handleImageLoad: function(e)
{
console.log(this);
this.Class.spriteSheet = new createjs.SpriteSheet({
// image to use
images: [this],
// width, height & registration point of each sprite
frames: { width: 64, height: 64, regX: 32, regY: 32 },
// To slow down the animation loop of the sprite, we set the frequency to 4 to slow down by a 4x factor
animations: {
walk: [0, 9, "walk", 4]
}
});









not working man
not working..
richie what?
this is in js??