Jump to content

Giving Array Properties


bloodbarron115
 Share

Recommended Posts

How do I give the properties set in this function:

 

 

function createFlake() {
flake = game.add.sprite(100, 0, 'flake');
game.physics.enable(flake, Phaser.Physics.ARCADE);
flake.body.velocity.y = 100;
flake.checkWorldBounds = true;
flake.body.collideWorldBounds = true;
return flake;
}
 
To the members of the first array:
 
 
var snowTracker = {
 
snowFalling:[100],
snowOnGround:[100],
}

 

 

I don't know if this will help in any attempts to help me but In the end i want the array flakes to fall from the sky and stack on eachother

Edited by bloodbarron115
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...