: Please note this answer addresses both the question and the comments... Some things just aren't easily scriptable. A gear isn't a "regular" shape. Basic shapes—squares, circles, and the like—are
Please note this answer addresses both the question and the comments...
Some things just aren't easily scriptable. A gear isn't a "regular" shape. Basic shapes—squares, circles, and the like—are so simple to create in the apps you mention that a script isn't necessary unless you plan on doing some complex transformations with the shape afterwards. A gear, on the other hand, really isn't a scripted item in a graphics application; an image of a gear is made by hand, or a pre-existing image altered to suit particular needs, then exported to the required format per your project's spec and used accordingly during runtime.
You don't mention how far you are in planning your application, but I suggest you look at your project specs and start looking at how you intend to use the art in question, because your implementation will drive how and what you create in a graphics application if you create anything in Photoshop at all. Your framework of choice (per your example would most likely be Core Graphics or Cocos2D) may already have something to offer in terms of ready-made functions to create and manipulate simple to moderately-complex shapes.
Gears are common to games, not graphics applications. Graphics applications are more about providing the core tools needed to make any kind of gear imaginable. Games invariably require custom graphics that aren't easily scripted until you have a clear idea in mind of what you want to make, and even then, the workflow would still more than likely be similar to what @koiyu described.
Also, take into consideration that it may be (more than likely will be) faster to simply draw the gear by hand (or hire someone) than to find a programmatic way to do this.
More posts by @Michele215
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.