Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17089

What's wrong with this code......?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 17089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>