» Home » sprite » Page 1
How to cut a “hole” inside a rectangular Sprite to see the Sprite underneath? (ActionScript 3)
Category : Programming Languages

Everytime I google this question I see confusing information about masks and blends, none of which seems to directly apply to what I think should be an easy thing...


There are three Sprites involved here...the lowest layer sprite is pretty much a background. I want to overlay a translucent Sprite on top of the background and then I want the third, top-most Sprite to act as a hole, s


View Replies


Cocos2D help: How to rotate a sprite continuously and generate child sprites in the rotating sprite
Category : Programming Languages

I am new to cocos2D can anyone suggest an easy solution to the problem?


I have a windmill with 8 bars on the windmill with each bar separated by 45 degrees, where half of the windmill is on screen and half is outside the screen. I want to rotate the windmill and make it rotate forever. Also I want to attach a child at the end of the windmill bars and it will rotate along with the wi


View Replies


AS3 adding children to sprite affecting sprite dimensions…wierdly
Category : Programming Languages

I have a 'InvZone' class in flash that extends sprite. The idea is that this class will create an array of Sprite children, compute and assign x,y,width and height properties to them and then addChild them in rows (how many rows and children being specified in the arguments).


Both the sprite (invZone) and its children (invWindow) are in the Flash library. There they have symbols


View Replies


Cocos2d - Change sprite animation (sprite sheet) based on touch
Category : Web Design

I think I am mostly after a critique of the way I am using my Player class, and how to improve it.


My spritesheet contains all the sequences I feel I need for the actions I am after. But what I would like initially, is that when my "jump" button is pressed, that the animation the character is going through is stopped, and the "jump" sequence from the spritesheet it used. (walk - fo


View Replies


How to change the path of a falling sprite and let the sprite fall in curve way into a specific position in Andengine?
Category : Programming Languages

I am having a sprite which falling to bottom.. Now in the touch action I want to change the path of that sprite and let it fall in a curve way(projectile manner).. Please suggest me what should use..


View Replies


How do you make a static sprite be a child of another sprite in cocos2D while using SpaceManager
Category : Mobile Programming

I have two static (STATIC_MASS) SpaceManager sprites. One is a child of the other - by which I mean that one sort of builds up the other one, but although the child's images shows up in the right place, the child doesn't seem to exists in the chipmunk physics engine, like I would expect. In my case, I have a backboard (rectangular sprite) and a hoop (a circular sprite). Since I might want t


View Replies


A tool to reverse the process of sprite composition by ImageBundle and split the generated sprite back into image snippets
Category : Development Tools & Services

Is there any tool out there (perhaps the GWT compiler itself can be used as a standalone app) for generating individual images from the *.cache.png files created during compilation?


Or, is the mapping information (for sprite geometries) available via an API?


I looked up information on the GWT repository, the documentation, here on StackOverflow, and possibly


View Replies


Change a sprite texture, with image from a sprite-sheet
Category : Programming Languages

I'am stuck!


This is how I create a sprite with texture form a sprite-sheet. But how do I change the sprites texture later on?


I have tried using setTexture but I can't get i working.


[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"gameSpriteSheet.plist"];
CCSpriteBatchNode *spriteSheet = [CCSpriteBatchNode batchNodeWithF

View Replies


creating sprite animation from sprite sheet cocos2d
Category : Programming Languages

I'm trying to create an animated sprite from a sprite sheet, to do this I'm running the following:


NSMutableArray *bunsenAnimFrames = [NSMutableArray array];
for(int i = 1; i <= 74; ++i) {
[bunsenAnimFrames addObject:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:[NSString stringWithFormat:@"15_%i.png", i]]];
}
for (int

View Replies


Rotating a cocos2d sprite on an anchor point outside of the sprite
Category : Programming Languages

Currently the setanchor function only sets the anchor within the sprite frame. Is there any (easier) wway to change the anchor point to a coordinate on screen space? My purpose is to allow the sprite to rotate around a circle.


TIA for any suggestions made.


View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .