bloodbarron115 Posted January 29, 2015 Share Posted January 29, 2015 (edited) 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 January 29, 2015 by bloodbarron115 Link to comment Share on other sites More sharing options...
Recommended Posts