[英]How can I make as3 gotoAndStop/gotoAndPlay commands, believe that Mc.currentFrame==Mc.frame1;?
我先感谢您的时间和考虑。 首先添加该站点。 :)我正在尝试创建一个棋盘游戏应用。 我想让每个棋子按骰子总数而不是帧数移动。 这有可能吗?到目前为止,我在互联网上找不到类似的东西。 如果我问的问题错了,请告诉我。 :) 谢谢
var diceValue = 4;
var stepDistance = 100;
piece.x += stepDistance * diceValue; //piece moves 400 pixels to the right
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.