All Questions
29 questions
0
votes
1
answer
82
views
Box2d: High screen resolution / frequency causes high friction?
I'm using Cocos Creator with (built-in) box2d for physics.
Recently our game behaves weirdly on our new device Galaxy S20 Ultra 5G - which has screen size = 1440 x 3200 - frequency = 120Hz.
After stop ...
2
votes
0
answers
68
views
What is the right way to implement a loading screen in cocos2d-js?
We have two scenes that are loaded with heavy computation; a map screen and a puzzle screen. When we change the scene from A to B, the app gets stuck on scene A for a while before it renders scene B.
...
0
votes
1
answer
4k
views
Minimum hardware requirements for developing for iOS and Android with Unity, Cocos2d-x and GameSalad on a Mac
I intend to create iOS and Android games. My main priority is to create 2D games. The software that I’m planing to use are Unity, Cocos2d-x and GameSalad.
I am a bit interest in the Mac Mini, ...
4
votes
1
answer
222
views
android - How Do I Replace A Scene in Cocos2D
I am using Cocos2D for Android:
I have two scenes MainScene and LogoScene. I want to show a Splash screen on ...
1
vote
0
answers
191
views
Cocos2d How do I transition to a scene
So I have mainScene and I have LogoScene, I am wondering If i can make logoscene show a logo, then transition to mainscene.
here is what i have
...
0
votes
1
answer
193
views
Cocos framework gives large Android builds than cocos2d-x
This question is regarding Project Architecture and workflow. I have an installation of cocos2d-x and Cocos Studio with Cocos Framework ( version 3.6). I carried out different build tests with hello ...
5
votes
1
answer
7k
views
difference between cocos2d-x vs cocos2d-js
I'm just moving towards native apps... A friend of mine told me to start with cocos2d, I'm good in javascript. While searching google for cocos2d, and within cocos2d-x.org I found
cocos2d-x
cocos2d-...
-1
votes
1
answer
348
views
How to swap the position of two sprites? [closed]
I'm making a game like Candy Crush with Cocos2D in Android. I've made the sprites but I want to swap to sprites by touch .
How to swap the position of two sprites?
0
votes
1
answer
2k
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:
...
0
votes
1
answer
3k
views
Android cocos2d removing a sprite after animation
I have an object going across the screen with an animation using the following code:
...
-4
votes
1
answer
491
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
2
answers
809
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 ...
-1
votes
1
answer
355
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
2
answers
875
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 ...
3
votes
2
answers
10k
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 ...
1
vote
1
answer
1k
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
1
answer
4k
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
1
answer
504
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
1
answer
367
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
-2
votes
1
answer
2k
views
How to make Moving road/track for android game? [closed]
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 ...
1
vote
0
answers
836
views
How to Store the game score in android cocos2d
I calculates the score in game project using android cocos2d, in that game after finishing the first level it goes to the next level, so i want to store that first level score and also add next level ...
1
vote
1
answer
904
views
How can I place a ProgressBar in Android using Cocos 2d?
I want to place a horizontal progress bar in my Android application and I want to change its progress color. I used the following code, but the progress bar is not being displayed.
...
1
vote
2
answers
1k
views
How can I disable/dim the screen when I click the pause button?
I am working in an android game using cocos2d. I want to dim the background screen when I click the pause button.
How can I do this ?
3
votes
4
answers
1k
views
Changing background images frequently within a specific time range with Cocos2D
I am working on a game development project for Android. We use the Cocos2d framework. I have to design a page which contains two background images, I need to switch these images repeatedly within 1sec....
0
votes
1
answer
2k
views
How do I implement a subclass of CCSprite?
Can someone tell me how to subclass CCSprite on Android?
I've added this snippet of code into my CharacterSprite:
...
0
votes
1
answer
3k
views
How do I animate a spritesheet in cocos2d Android
I'm trying to animate a sprite in a spritesheet, the goal is to make the character walk from left to right. I subclassed CCSprite: CharacterSprite.
this is my code:
...
1
vote
2
answers
3k
views
How can I handle a touch event in cocos2d for Android?
How can I handle a touch event in cocos2d for Android? And how to move a sprite using ccTouchesMoved?
-2
votes
1
answer
2k
views
Objective-C to Java conversion for porting iPhone apps to Android?
can anybody help me to convert this objective-c code to android java.
...
1
vote
2
answers
1k
views
Cocos 2D putting things on the cocos thread or not?
We are using Cocos 2D for Android and are unsure if it's a good thing to execute our non-ui tasks on the Cocos thread as a way to get the animations in our game to pause.
What is the recommended ...