Quantcast








     

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...

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.

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...

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 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?...

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-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 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...

evolveStar Join

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 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?...

"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...

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...

how to make matrix efect

torrent-invites.com - 2012-08-02 18:39:02 - Similar - Report/Block

Here do this to get something similar to the matrix case. @ echo off 02 color : start echo% random%% random%% random%% random% echo% random%% random%% random%% random% echo% random%% random%% random%% random% echo% random%% random%% random%% random% echo% random%% random%% random%% random% goto start I save the file as matrix.bat (They do...

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~...

RANDOM RAVES XXVIII: Death by Snu Snu

civfanatics.com - 2013-04-19 05:49:57 - Similar - Report/Block

Random Raves (the original!) Random Raves Two Random Raves Three: Happiness and Joy Random Raves Four: Momentary Diversions on the Road to the Grave Random Raves V: Ac-Cent-Tchu-Ate The Positive Random Raves VI: Put on a Happy Face Random Raves VII: I liek ma gun, liek ma gun!! Random Raves VIII: Don't Stop 'Til You Get Enough Random Rav...

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...

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...

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...

HTML5 canvas sprite sheet random image

stackoverflow.com - 2013-02-27 15:34:13 - Similar - Report/Block

At the moment the code chooses one image from the sprite sheet and displays it across the sreen, what I'd like to do is select random images across the row and display them in the game, for example I want red/pink/green asteroids to display but at the moment its just displaying the green ones. This is the current code, any help would be f...

Recognize Repeated Movement Patterns of Mouse Behavior using OpenCV

stackoverflow.com - 2012-03-09 11:24:26 - Similar - Report/Block

I have a situation where I have collected mouse movement points from a website. I have a series of points (x,y) and I need to detect different repeated patterns of mouse movement from this data. For example: mouse moving very slowly; mouse moving very fast toward a direction and then stopping for a while; mouse scrolling etc... I need to...

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...

Introducing the cocos2d multi-platform toolchain

cocos2d-iphone.org - 2012-12-05 00:54:52 - Similar - Report/Block

We are happy to announce the first coordinated release of the cocos2d family. We are releasing: CocosBuilder v3.0-alpha0 cocos2d-html5 v2.1 cocos2d-iphone v2.1-beta4 cocos2d-x v2.1beta3-x–2.1.0 Our goal is to provide a complete toolchain for developing multi-platform games both for Web and Mobile, all the way from rapid prototyping to a f...

RANDOM RANTS XLVI: Slightly More Than a Month-ly Edition #1

civfanatics.com - 2013-03-15 03:47:03 - Similar - Report/Block

CONGRATULATIONS OT We Did It! We have the thread nailed down to hitting its limit in slightly more than a month! Next goal: Monthly edition! Reach goal: Weekly edition! Previous Editions Random Rants (The Original!) Random Rants Two Random Rants 3 Random Rants 4: Keep Complaining Random @#%& rants 5: Life is a female dog. Random Rants VI...

Spawning Multiple of the same sprite

stackoverflow.com - 2012-04-30 21:34:32 - Similar - Report/Block

I am currently working on a game called Table Wars, a turn based strategy game for two players. Progress has been going smoothly, until I ran into a problem with spawning units. The program won't spawn multiple of the same unit, or respawn new ones after the old ones die. Here is some information that may help: Each class is stored in a v...

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...

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.

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.




dialogShowMessage!

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.