社区
J2ME
帖子详情
sprite.move方法
yava555
2007-07-22 05:07:32
我用sprite.move控制精灵移动,但是移动太大了。
能不能让它移动慢点
sprite.move(1,0)
...全文
211
3
打赏
收藏
sprite.move方法
我用sprite.move控制精灵移动,但是移动太大了。 能不能让它移动慢点 sprite.move(1,0)
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
网络咖啡
2007-07-23
打赏
举报
回复
速度太快有2个解决办法:
1、降低每次移动的单位大小
2、增加每次线程循环的时间间隔
xtwwx
2007-07-22
打赏
举报
回复
Sprite.setPosition(x,y);控制x y就行了
xtwwx
2007-07-22
打赏
举报
回复
Sprite.setPosition(x,y);
控制
简单游戏开发
简单游戏开发,雷霆战机的源码//创建一个精灵
sprite
= CC
Sprite
.
sprite
("p.png"); this.addChild(
sprite
); CGPoint point = CGPoint.ccp(200, 200);
sprite
.setPosition(point); // CCMoveTo moveTo = CCMoveTo.action(2, CGPoint.ccp(300, 600)); //
sprite
.runAction(moveTo); // // CCMoveBy moveBy = CCMoveBy.action(2, CGPoint.ccp(300, 600)); //
sprite
.runAction(moveBy); } @Override public boolean ccTouchesBegan(MotionEvent event) { // CCMoveTo moveTo = CCMoveTo.action(2, CGPoint.ccp(300, 600)); //
sprite
.runAction(moveTo); // CCMoveTo moveTo = CCMoveTo.action(2, CGPoint.ccp(300, 600)); //
sprite
.runAction(moveTo); CCMoveBy moveBy = CCMoveBy.action(2, CGPoint.ccp(300, 600));
sprite
.runAction(moveBy); Log.d("Game01", "用户点击了屏幕"); return super.ccTouchesBegan(event);
2D Apple Games by Tutorials 2.0.pdf
swift 3 and ios10 xcode8 So far, you’ve learned how to move and rotate
Sprite
Kit nodes — a node being anything that appears onscreen — by manually setting their positions and rotations over time. This do-it-yourself approach works and is quite powerful, but
Sprite
Kit provides an easier way to move
sprite
s incrementally: actions. Actions allow you to do things like rotate, scale or change a
sprite
’s position over time — with only a single line of code! You can also chain actions together to create movement combinations quite easily. In this chapter, you’ll learn all about
Sprite
Kit actions as you add enemies, collectibles and basic gameplay logic to your game. You’ll see how actions can simplify your game-coding life, and by the time you’ve finished this chapter, Zombie Conga will be action-packed!
Sprite
Kit游戏引擎视频教程
Sprite
Kit是Apple新推出的2D游戏引擎,与Cocos2d-x类似。可以使用Objective-C和Swift语言开发。可开发iOS和Mac OS X下的2D游戏。本课程主要介绍了
Sprite
Kit的常用技术,包括基础知识、action、粒子系统、物理引擎等...
blog-calebnance_phaser-tutorials:相位器教程系列代码
blog.calebnance.com :: Phaser教程 启动了此存储库,以跟进我在博客中提供的教程。 以下是与之配套的博客文章和支持文件: Simple Canvas Start ::| | Tilemap ::| | Camera Move ::| | 添加
Sprite
::| |
Sprite
Move ::| | Tilemap画布边界::| |
Sprite
Change ::| |
Sprite
Visual Debug ::| |
Sprite
Move-Touch ::| |
Sprite
Move-人脸跟踪::| |
This shows you the basics of using Direct Draw and Direct So
This shows you the basics of using Direct Draw and Direct Sound. It shows you how to create a
sprite
and move it around the screen
J2ME
13,100
社区成员
26,495
社区内容
发帖
与我相关
我的任务
J2ME
Java J2ME
复制链接
扫一扫
分享
社区描述
Java J2ME
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章