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)];
精彩评论