@luke2125 wrote:
Hi,
I'm relative new to Cocos2Dx and Cocos Creator, and trying to get a grasp of the code, would appreciate any feedback regarding the below code:
var rand = Math.round(random(min-350, max+360));this.node.setPosition(this.duckposx, this.rand);
I'm trying to set Position Y at random between min, max for Sprite.....Would appreciate any feedback....God Bless....
Sincerely,
Sunday
Posts: 17
Participants: 3