Questions tagged [cocos2d-x-3.17]
6 questions
2
votes
1 answer
Cocos2dx 3.17 TileMap Basic Sample - wrong tilecord position, object layer itmes position returned also wrong
I tried cocos2d TileMap sample from here, In this tilecord returned for given player position is wrong.
Here is code
Point HelloWorld::tileCoordForPosition(Point position)
{
int x = position.x / mTileMap->getTileSize().width;
int y =…

Guru
- 21,652
- 10
- 63
- 102
1
vote
0 answers
Crash on cocos2d::TextureCache::loadImage()
I am using cocos2dx-v3.17.2, ndk-r21d, android studio 4.1.1 . I am experiencing a crash on
cocos2d::TextureCache::loadImage() + 290
My crash stack trace from firebase crashlytics is like below image:
I don't use TextureCache::addImageAsync or…

MD.NIROB HASAN
- 21
- 3
1
vote
0 answers
how can i add velocity and friction to my physics bodies in cocos2dx
I want to move my carroms on hitting of the striker am using simple setVelocity but it looks like my carroms coins are floating in air on carrom board so plz help me to move smoothly them
carrom board velocity of carroms
void…

Shiva Yadav
- 72
- 1
- 9
1
vote
1 answer
cocos2d-x 3.17.2 utils::captureScreen failed assertion on iOS 13.1.3 on my iPad mini 5th
I'm using cocos2d-x 3.17.2 and running my App on iPad mini 5th iOS 13.1.3.
When I call utils::captureScreen, it causes assertion failure.
_validateGetBytes:29: failed assertion `CPU access for textures with MTLResourceStorageModePrivate storage…

deve
- 71
- 5
1
vote
1 answer
How can i start new android game project of cocos2d-x-3.17 in visual studio 2017?
I'm new with cocos2d-x-3.17, and i want to start a new android game project, and i prefer developt it in Visual Studio 15/17. I tried to do some search on forum, but unfortunately got me confused.
I already did install coco2d-x-3.17, i used…

Rio Manik
- 29
- 3
0
votes
0 answers
Why setPosition work in some condition but doesn't work in other condition?
i make a game let's say ThrowBall, the Player can pick up the ball spawned and throw it into target get the score added then the ball return it's position and repeat. The problem is when Ball dragged by Player (i make the Ball as child of Player)…

Rio Manik
- 29
- 3