How to make cocos2d sprite scale up and down (for a pulsating effect) every second?

stackoverflow.com - 2010-07-06 11:53:41 - Similar - Report/Block

I want to have a sprite scale up and down once every second to make it seem like it is bulging and pulsating. How can I do this?...

Cocos2d. Sprite and progress bar tight connection

stackoverflow.com - 2012-06-16 18:33:46 - Similar - Report/Block

Start to learning Cocos2d and have a question. With moving of the sprite I need progress (health) bar keep moving with them (slightly above the sprite), with keeping it position relative to the sprite like if it was one sprite. Any ideas how to realise? Thanks, Alex.

Cocos2D 2.0 - trying to understand this puzzle with layers and sprites

stackoverflow.com - 2012-07-19 19:07:40 - Similar - Report/Block

Consider this: you create a new project on Cocos2D 2.0. You have the traditional Helloworld layer. You add a layer to it with the following structure: Helloworld (cclayer) │ ┕━ baseLayer (cclayer) │ ┕━ myReducedNode [CCSprite node] │ ┕━ myFullSprite (ccsprite) │ ┕━ smallSprite (ccsprite) myReducedNode is a node inside baseLayer, c...

Adding Endless parallax background in cocos2d android

stackoverflow.com - 2013-03-13 12:44:36 - Similar - Report/Block

I am working on CoCos2d with android.I want to add an endless scrolling background to my Screen by using CCParallaxNode. I am able to add background and move it but after the completion of that move action the screen goes black. Can someone help me out? My code is CCParallaxNode parallaxNode; CCSprite spacedust1; CCSprite spacedust2; CCSp...

cocos2d-x: Rotating CCSprite while moving changes it's final position

stackoverflow.com - 2012-10-15 12:40:36 - Similar - Report/Block

I'm trying to make an animation for my game, of an ant leaving it's nest. It should descend the nest going right and down, facing down and then look straight again. So I created two sequences of actions, one for moving and the other for rotating and put them together in a CCSpawn (there's also a bit of scaling, but apparently that doesn't...

Cocos2D random sprite movement

stackoverflow.com - 2012-05-26 19:28:42 - Similar - Report/Block

As a very beginner in Cocos2D i´m trying to make a iPhone game where some cows move randomly around the screen. I used the code for moving the sprites from here: highoncoding.com/.../ . I´m adding the sprites in the init method wia an addAnimal method: -(void) addAnimal { animal = [CCSprite spriteWithFile:@"cow.png"]; animal.position = [s...

Unable to load the frame cocos2d for Android

stackoverflow.com - 2011-04-28 09:58:13 - Similar - Report/Block

I am trying to draw one sprite from atlas.. I created with Zwoptex the atlas and the plist file. put the two files in the assest folder.. In the code I create new GameScene class and try to load it.. //Return the ShareFrameCache object. CCSpriteFrameCache frameCache = CCSpriteFrameCache.sharedSpriteFrameCach e(); //Loading the list of f...

How To Cut The Sprite Into An Irregularly Shape Using Cocos2d Game Engine?

stackoverflow.com - 2012-06-06 12:06:55 - Similar - Report/Block

I need to show the picture in an irregularly shape. Not only a rect shape or some regularly shape else,but any shape I want. Is it any way to cut the sprite,texture or image into an irregularly shape? As far as I know, there is no API to archive the purpose. Maybe OpenGL is the best way to do this,but I have no idea about how to archive i...

How to Click and Drag sprite on Y Axis only in Cocos2d?

stackoverflow.com - 2012-07-23 11:50:22 - Similar - Report/Block

I was wondering if somebody could help me out and possibly point me in the right direction. It's easy, I'm n00b. Here's my code: - (void) ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint point = [touch locationInView:[touch view]]; point = [[CCDirector sharedDirector] convertToG...

Cocos2d and SpriteBatchNode: cannot identify which sprite frame is causing an Assertion to fail

stackoverflow.com - 2013-02-20 12:05:22 - Similar - Report/Block

I have already asked something similar but I can't figure out properly how to debug this. That's the question I added some Exceptions handler (catches all Objective-C) exceptions and that's the result of what I see: The problem is with the setTexture method and it fails at the assertion verifying whether the texture name that needs to be...

App Crashing with NSMutableArray

stackoverflow.com - 2012-02-28 22:00:44 - Similar - Report/Block

I'm pretty new to iOS, and I have no idea how to find a decent stacktrace like JAVA, so all I can find on why it's crashing is, "sigabrt". I know it has something to do with this code I just added. -(void) clearGame { for (CCSprite *sprite in placedSprites) { if(sprite == nil) continue; [self removeChild:sprite cleanup...

How to pause animated sprite animation in Cocos2d?

stackoverflow.com - 2012-02-28 15:12:35 - Similar - Report/Block

I want to pause/unpause animation for particular sprite when proper message appears. I would do this by CCNode::stopAllActions() but it cancels all the animations which are then meant to set up again. I just want to do it in a quick pause/unpasue way. Anyone have a clue for efficitne way on this subject?...

evolveStar Join

cocos2d: past, present and future

cocos2d-iphone.org - 2012-04-09 01:09:47 - Similar - Report/Block

Last weekend the cocos2d-x developers conference was held in Beijing, China. I was invited to the conference and I gave a talk about   Cocos2d: past, present and future The conference was great. The talks were about cocos2d, cocos2d-x, coco2d-html5, cocos2d-xna and more. There were about 1.000 attendees. Here are the photos that I took:...

Cocos2d-x CCSprite-> setDisplayFrame AccessViolation crash

stackoverflow.com - 2013-04-11 09:18:45 - Similar - Report/Block

So far I could track down every error/crash I had in my cocos2dx application, but now I feel myself dumb. I have an array of CCSprite pointers, and what I want to do is to change it's display frame from the cache when the player has x score. All the sprite frames are read from a plist file, and the sprite is there and working, because I c...

Cocos2D - Particles follow the emitter instead of staying at the position they were released

stackoverflow.com - 2012-04-10 19:00:57 - Similar - Report/Block

In cocos2D I currently have a very simple particle emitter initialized like this: turnEmitter = [[CCParticleFlower alloc] init]; turnEmitter.texture = [[CCTextureCache sharedTextureCache] addImage:@"Pocket.png"]; [self addChild:turnEmitter z:1]; turnEmitter.scale = 0.7f; turnEmitter.positionType = kCCPositionTypeFree; It is simply ad...

cocos2d shader mask got blank screen

stackoverflow.com - 2012-09-07 07:25:38 - Similar - Report/Block

I studied Ray's tutorial(http://www.raywenderlich.com/44 28/how-to-mask-a-sprite-with-cocos2d-2-0 ), but with the current version of Cocos2D, I can't get the result. Please help me . These codes are transformed to ARC. @implementation MaskedSprite - (id)initWithFile:(NSString *)file self = [super initWithFile:file]; if (self) { // 1 _ma...

"Squared" Sprite Sheet Generator

gamedev.net - 2012-09-17 19:25:39 - Similar - Report/Block

Hello, I need to generate a sprite sheet with squared sprite for a 2D game. How can I generate a sprite sheet where each frame has x = y? The only think I have to do is to "insert" some blank space between sprites (in case y were > x in the original sprite). Is there any program that I can use to trasform "irregular" sprite sheets to "...

cocos2d-iphone v1.1 RC0 released

cocos2d-iphone.org - 2012-10-22 01:17:11 - Similar - Report/Block

I am very happy to announce that cocos2d v1.1 RC0 is finally available for download: http://cocos2d-iphone.googlecode.com/fil es/cocos2d-iphone-1.1-RC0.tar.gz Highlights * iPhone 5 and iOS 6 support * Better support for DisplayLink + UIKit elements * Easier physics integration * Many, many and even more bugfixes Full Changelog: https://git...

Comment on 3rd coordinated release: cocos2d-iphone v2.1-rc1 and more by Third Coordinated Cocos2d Release « CocosBuilder – Graphical Interface Builder for Cocos2D iPhone and iPad

cocos2d-iphone.org - 2013-03-21 02:51:13 - Similar - Report/Block

Just out is the third coordinated release of CocosBuilder, cocos2d-iphone, cocos2d-x and cocos2d-html5. All these tools work beautifully together. Read more at the Cocos2d blog.

How do you check to see if a sprite collides with any other object (Android AndEngine)?

stackoverflow.com - 2012-06-21 00:26:02 - Similar - Report/Block

When the user touches the screen, a sprite is created and is able to be dragged around until the user lifts his finger. At this point, a physics body is then attached to the sprite so that it will fall to the bottom of the screen. However, when the sprite collides with another sprite/body I need it to stop being able to move. How do I che...

Touch detection without event processing

stackoverflow.com - 2012-03-07 06:40:14 - Similar - Report/Block

I am using cocos2d. I would like to be able to detect whether the screen is touched at a particular instant - that is, rather than intercepting an event when it occurs, I want to detect the presence of touch at a particular moment. The reason is that I am animating sprites and want to determine if the sprite should keep moving - if the s...

1:48 Scale Bread

deviantart.com - 2013-03-19 15:17:10 - Similar - Report/Block

1:48 Dollhouse Scale bread made from polymer clay. So I was aiming for 1:24 scale and somehow managed to go a scale under. I knew they seemed really small for 1:24 and I was right when I finally found a printable doll scale sheet. At least now I know I can make 1:48 foods! These are a tiny bit on the large side but they still fit and don'...

How to move a sprite across the screen ? cocos2d

stackoverflow.com - 2012-07-07 14:28:09 - Similar - Report/Block

I have a question, I want to make an animation which is moving my CCSprite across the screen (Repeateforever) but what is the most important for me is that when my object is accrossing the screen (for example a ball) and its is starting to disappear i want to see that part in the opposite part of the screen is it possible ? kuba.

How can I scale an image in a CSS sprite

stackoverflow.com - 2010-03-12 03:50:45 - Similar - Report/Block

In this article, http://css-tricks.com/css-sprites/ , it talks about how can I crop off a smaller image from 1 bigger image. Can you please tell me if it is possible/how I can crop off a smaller image and then scale the cropped off region before I lay it out? Here is an example from that article: background-image: url(http://www.jaredhir...

sprite sheets in native app (NOT cocos2d)

stackoverflow.com - 2013-04-11 15:14:24 - Similar - Report/Block

Short Q. Mostly to get me help that can point me in the right direction. I am having problem finding help on how to use and implement spritesheets (insted of loads of seperate icon.png) in a 'normal' native app with storyboard. All I have found so far is how to do it in cocos2d for games. And I am aware that I have to implement it all pro...

How to incorporate storyboards into a cocos2d 2.0 project?

stackoverflow.com - 2012-07-18 23:13:08 - Similar - Report/Block

I have made a project in cocos2d 2.0 and would like to incorporate a main menu using storyboards. I have tried Jerrod Putnam's tutorial here on tinytimgames.com (I can't provide the link because new users are allowed only 2 links per post, but if you google "cocos2d storyboard" it is the first link) but it did not work for me. I followed...

Cocos2d-x image not found "already has the suffix -ipad. Using it."

stackoverflow.com - 2012-06-20 20:49:20 - Similar - Report/Block

So i'm using Cocos2d and i keep getting the error Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.fnt Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.png Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images-ipad.png Cocos2d: cocos2d: CCFileUtils: Warning file not found: fps_images...

Homestuck - Dave Strider Sprite

deviantart.com - 2012-07-27 15:33:39 - Similar - Report/Block

This is a custom sprite, made for: She won a free sprite in my Sprite Lottery~ Congratulations! This is Dave Strider, from Homestuck. Hope you like the result! Dave Strider © Andrew Hussie Good news for those interested in getting their own custom sprite: I'll be starting up commissions soon! So keep an eye on me, if interested~...

Is it possible to add Cocos2d/3d into a project that is already started in xcode?

stackoverflow.com - 2012-03-12 22:51:10 - Similar - Report/Block

I already have a project started and now I have decided it would be easier to do the animations with Cocos2d and want to add it into the project. Is this possible or do you need to completely start over and do everything in cocos2d. I do have a NSTimer in it and I know things like that you can't use in cocos2d. Or is there a way to do...

Cocos2d-x for Windows Phone 8 is out

cocos2d-iphone.org - 2012-10-31 16:46:25 - Similar - Report/Block

With the launch of Windows Phone 8, Microsoft Open Technologies Inc pushed hard to get this port out, which is branched off from Cocos2d-x for Windows 8 metro. Now you can get your game onto Windows Phone 8 before anybody else! It has the same API set as Cocos2d-x C++ so porting your game is a breeze, and of course as always, it is licens...

c, obj c enum without tag or identifier

stackoverflow.com - 2011-12-07 11:56:42 - Similar - Report/Block

im learning cocos2d [open gl wrapper for objective C on iPhone], and now playing with sprites have found this in a example, enum { easySprite = 0x0000000a, mediumSprite = 0x0000000b, hardSprite = 0x0000000c, backButton = 0x0000000d, magneticSprite = 0x0000000e, magneticSprite2 = 0x0000000f -(id) init {... /second sprite TSprite *med...

Need help making scale armor

t-shirtforums.com - 2012-10-15 06:15:52 - Similar - Report/Block

I have a very important client that came to me and asked me if I can print his logo, but make it appear to be metallic scale armor... I am not really sure how to acheive this look, if you google images "scale armor" you can see what I am looking for... Any help would be great!...

how to make a circular line of sight in cocos2d tile map

stackoverflow.com - 2012-04-06 15:00:10 - Similar - Report/Block

I have a problem about cocos2d tile maps. My aim is to make a circular line of sight that when player moves around, it must only see its around in circle but not see the rest. I have tried many things and successed it in rectangular area but I couldn't succeed it in circular area. I am waiting for your answers. Thanks for your help. If yo...

UIView two animations coexisting

stackoverflow.com - 2012-04-10 21:14:10 - Similar - Report/Block

How can I have one animation continue forever after calling a second animation? For example: 1) start an object pulsating 2) Move it while its pulsating 3) it continues pulsating Everything works except the second animation is stopping the first one indefinitely. Below is some sample code: //Pulsate ** [UIView animateWithDuration:0.25 d...

animate sprite in dx11

gamedev.net - 2013-06-09 20:06:53 - Similar - Report/Block

So i tried to implement sprite class but i've stuck with the animation. I just can't understand how should i create new texture which's part of source texture. And then how should i set that texture in shader? I was told that sprite code sample included in dx sdk but i can't find it... Sorry for my poor english, im from Russia...

Comment on Download by Build a Monster Smashing Game with Cocos2D: Project Setup - PDG Technologies::Outsourcing company Smartphone Web Windows 8 Development

cocos2d-iphone.org - 2013-06-04 21:20:59 - Similar - Report/Block

is your first time working with Cocos2D, you’ll need to download and install the SDK from the Cocos2D for iPhone Webpage or from the GitHub Repository. Once you’ve downloaded it, you’ll need to install the Xcode...

XNA Sprite Rotation Point

stackoverflow.com - 2012-04-03 22:59:23 - Similar - Report/Block

I'm busy with a little topdown shooter in XNA. Now I have a little Mathematical problem: I have a sprite, a human that's holding a 9mm. Now the sprite looks at the mouse cursor. When I shoot, I want to show a little muzzle flash @ the end of the gun barrel. However, the coordinates of the end of the barrel will change when you rotate the...

Sorting an ArrayList of Sprites in Java

stackoverflow.com - 2012-07-22 04:34:30 - Similar - Report/Block

I'm touching up a game engine I wrote in Java a while back. I have a master Arraylist that holds Sprite objects. The Sprite class holds an X and Y location of the specified sprite by the type float. I'm trying to sort the list based on their relative distance to a specific sprite (the player). I have a method that calculates the distance...

Замер времени рисования! - Java GUI & JavaFX

cyberforum.ru - 2013-03-21 15:59:19 - Similar - Report/Block

Доброго времени суток. Собственно задача состоит в том, чтобы измерить время за которой будет прорисована фигура. Вот тот код, к которому я пришел: Код: public class TestThree { private double result; private JFrame test3 = new JFrame(){ public void paint(Graphics g){ super.paint(g); int x = 50; int y = 50; int scale = 100; int da...

AS 3.0 Проекция 3D координат - ActionScript

cyberforum.ru - 2013-05-05 13:52:40 - Similar - Report/Block

Помогите пожалуйста! Допустим есть скрипт: Код: var S1:Sprite=new Sprite(); var S2:Sprite=new Sprite(); var S3:Sprite=new Sprite(); stage.addChild(S1); S1.addChild(S2); S2.addChild(S3); S1.x=20; S1.y=20; S1.rotationX=20; S1.rotationY=-80; S1.rotationZ=160; S2.x=-10; S2.y=10; S2.rotationX=-80; S2.rotationY=45; S2.rotationZ=16; S3.x=10; S3.


Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.

Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !

evolveStar.com provides a search engine that allows you to gather information to write their own blog.

evolveStar.com enhances the sources displaying the logo of the site.

If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com

Specifies the subject copyright violation and the url of the page

evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.

Next will be effectual and relevant checks.

Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.