Quantcast








     

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

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

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 implement dragging in Kobold2d using KKInput?

stackoverflow.com - 2013-03-17 19:03:55 - Similar - Report/Block

This must be a rather simple solution that I am simply missing. How do I implement a simple drag and drop using KKInput? I am trying something like this in the update method. KKInput* input = [KKInput sharedInput]; if ([input touchesAvailable]){ if ([input isAnyTouchOnNode:[self getChildByTag:0] touchPhase:KKTouchPhaseAny]) { [sprite se...

Can I extend Button to add a RightClick event?

stackoverflow.com - 2012-03-31 00:55:18 - Similar - Report/Block

I'm trying to extend Button to add a RightClick event. My customer wants a button to do different things depending on if you left-click or right-click. I expected there to be an easy event for right-clicking, but it turns out there's not. I'd prefer Button's visual behavior to be identical to the preexisting Click event, but it's proving...

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

evolveStar Join

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

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

jQuery graph/plot plugin with drag and drop capabilities on the elements?

stackoverflow.com - 2013-03-22 10:55:03 - Similar - Report/Block

The short version: I'm looking for a graph/plotting/grid/diagram plugin just like the flot plugin but with drag and drop capabilities on the elements. Any suggestions? The long version: I'm building a tool for management of work processes and assignments. I'm imagining a graph with time on the x-axis and employees on the y-axis. The grap...

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

C# - Why drag and drop does not work on my Mouse-Down Right Click?

stackoverflow.com - 2013-02-04 15:20:22 - Similar - Report/Block

The follwoing code refuses to work for drag and drop on the right mouse click. When I right click the mouse I do see the proper context menu but I am not able to drag and drop although I do have an event handler for DragDrop , DragEnter, and DragOver. Is it because I can't have context menu and drag and drop on the same right click? what...

How to change color of axis scale In TeeChart

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

I am working with C# windows from application. I am using TeeChart for .net v3 to plot chart.I am able to create multiple Y-axis with different color for each one as shown in below image. Now i am able to display the axis with difftent color but i want to assign the same axis color to the scale of its axis also. Please help me what proper...

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

xrandr fails to detect refresh rate when switching resolutions with -s option

fedoraforum.org - 2012-10-05 07:06:10 - Similar - Report/Block

My video card is a gtx 680 and I'm using Fedora xfce spin 17. Here is my xrandr output: Screen 0: minimum 8 x 8, current 1280 x 1024, maximum 16384 x 16384 DVI-I-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1280x1024 60.0*+ 75.0 1280x960 60.0 1152x864 75.0 1024x768 85.0 75.0 70.1 60.0 800x600...

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

Best way to translate mouse drag motion into 3d rotation of an object

stackoverflow.com - 2008-09-20 08:40:45 - Similar - Report/Block

I have a 3d object that I wish to be able to rotate around in 3d. The easiest way is to directly translate X and Y mouse motion to rotation about the Y and X axes, but if there is some rotation along both axes, the way the model rotates becomes highly counterintuitive (i.e. if you flip the object 180 degrees about one axis, your motion a...

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

jQuery draggable and resizable panels

stackoverflow.com - 2012-03-26 13:48:29 - Similar - Report/Block

I have multiple 'bars' which I wish to resize and drag along a x-axis. You can compare it with a schedule representation. You can see the example here: http://jsfiddle.net/ene6C/5/ You can drag the bars, and you can resize the bars. The problem is, that when you resize them, they slide behind other bars and I want them for each to stay on...

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

Click and Drag not working with jQuery UI iframeFix in Firefox

stackoverflow.com - 2012-06-01 18:27:43 - Similar - Report/Block

This is a bit hard to explain, so I've set up a reduced test case here: http://jsfiddle.net/5Z6h6/1/ . Essentially what's happening is I'm passing jQuery UI's .draggable to the content of the iFrame, and using jQuery UI's built-in iframeFix to avoid issues with the iFrame capturing the mouse events. This works great, except in Firefox, w...

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

ClickLock still functioning even when disabled

techguy.org - 2013-03-19 04:36:11 - Similar - Report/Block

Hello, I have a wireless mouse connected to my laptop. It's been working fine, but recently, I've noticed that sometimes, when I click on something, it begins to drag it, rather than performing a proper click. I've noticed this only seems to happen when I click for a very specific time interval (about half a second), and not for shorter a...

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

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.