Tagged Questions
0
votes
0answers
12 views
How to get sprites react to touches in cocos2d-android
i have 1 gun when tap on any area on the screen bullets fires out, but according to my requirement there are 3 guns(sprites) when touched on any of the sprites bullets must fire up, when googled i ...
0
votes
0answers
12 views
Android cocos2d getting collision detection to work only on some frames of animation
I have an animated bomb sprite in my game and use CGRect for collision detection:
for (CCSprite bomb : _bombs) {
CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
0
votes
1answer
14 views
Android cocos2d getting a sprite to continuously move to a dynamic position
I tried using the MoveTo method in cocos2d to get a sprite to continuously follow my player sprite:
CCMoveTo actionMove = CCMoveTo.action(actualDuration, player.getPosition());
CCSequence actions = ...
0
votes
1answer
25 views
Android cocos2d removing a sprite after animation
I have an object going across the screen with an animation using the following code:
CCSpriteFrameCache.sharedSpriteFrameCache().addSpriteFrames("ninjastar.plist");
CCSpriteSheet projectileSheet = ...
-4
votes
1answer
352 views
“Null Pointer Exception” Animating sprite in cocos2d android [closed]
I am converting this monkey jump game tutorial in android. I have done til monkey sliding right to left and left to right but I am stuck in the part of monkey walking animation. I have tried but ...
1
vote
2answers
437 views
CCSpriteFrameCache: Frame '%s' not found
I have just started using the Cocos2D library for Android. I am trying to make a walking bear animation.
For that I am using a CCSpriteFrameCache, but I'm getting a "frame not found" error in the ...
-1
votes
1answer
143 views
How to integrate ad mob ads in cocos2d android portal?
Could anybody tell me how to integrate ad mob ads in my cocos2d android app.
2
votes
2answers
515 views
Importing a windows project into android using cocos2d-x
What I am trying to do today is to import a full project to Android, but no tutorials are available for that that I have seen. My approach was to create a new android project, copy all the classes and ...
1
vote
2answers
3k views
Create an infinite scroll using CCParallaxNode in Cocos2D-X
I'm trying to create an infinite scroll using two images in a CCParallaxNode, making one move to the end of the scroll when it gets off the screen. I have tried several implementations but none has ...
0
votes
0answers
271 views
Which game engine is more worthwhile for mobile game development [closed]
I have been thinking of starting to learn mobile game development. I recently learned that there are three popular game engines available for android:
AndEngine
cocos2d-android
libGdx
you guys ...
0
votes
1answer
463 views
How do I perform a slice effect like Fruit Ninja?
I want to do slice effect like in Fruit Ninja. Is there any class in Cocos2D like CCBlade? How can I use the CCBlade in Cocos2D on Android?
1
vote
1answer
986 views
How to create a splash (loading) screen in cocos2d for Android?
How to create a splash (loading) screen in cocos2d for Android?
I need a loading screen that shows my app name and after that the next scene will show automatically.
Thanks
0
votes
1answer
299 views
Determining the X, Y co-ordinates in sprite sheets
I am new to Android COCOS2D and developing a simple game to start with. I am developing a game for kids in which the kids shall spell out the names of the fruits they select. I have developed the ...
-1
votes
1answer
227 views
Touching on the particular sprite from the spritesheet
I want to click on the particular sprite from the sprite sheet. For instance i have fruits sprite sheet i want to click on the particular fruit.
Thanks,
Jubin Mehta
-1
votes
1answer
813 views
How to make Moving road/track for android game?
I am very much new to Android game development. and i have little idea about the canvas and open GL. in one of my requirement i wanted to draw a moving road/track(Jazzy). how should i start. please ...