开发者

Creating sprites at a specific coordinate?

Hey guys, How would I go about telling the computer to create a object/sprite at a specific coor开发者_如何学编程dinate (on the iPod touch screen)? Then I would want to tell the computer to create the sprite with a static Y coordinate and a dynamic X coordinate. Basically I'm trying to create the game avalanche. Thanks in advance guys!

-Dustin


The simplest way is to use an imageView and position it.

[mySprite setFrame:CGRectMake(x,y,width,height)];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜