Skip to main content

Questions tagged [cocos2d-x]

cocos2d-x is a cross plaform port of cocos2d-iphone using C++. It supports iOS, Mac, Android, Samsung Bada, BlackBerry Tablet OS, Windows and Linux. It has built-in bindings for Lua and Javascript.

Filter by
Sorted by
Tagged with
5 votes
1 answer
5k views

Cocos2d-x supporting multi-resolution using density independent pixels

Is there a way to use Density Independent pixels(dp) in cocos2d-x? I am developing an Android game using Cocos2d-x 3.0. The Android reference http://developer.android.com/guide/practices/...
whiteSkar's user avatar
  • 183
2 votes
1 answer
796 views

Spriting Animation Method

http://www.kickstarter.com/projects/539087245/spriter At 3:00 they discuss that there is a method used to separate the parts of character into individual sprites and move them saving production time ...
George Host's user avatar
2 votes
3 answers
1k views

How to get `Label::createWithTTF` to support RTL languages such as Arabic

Firstly, I'm using Cocos2d-x v3.6, Visual Studio 2013 uses(UTF-8 without signature option) and ...
Lion King's user avatar
  • 171
2 votes
2 answers
956 views

Right-To-Left Text Direction in Cocos2dx

I want to use Persian/Arabic text beside English in whether Label or ui::Text. Persian is a Right-to-Left and English is a Left-...
Emadpres's user avatar
  • 940
1 vote
1 answer
531 views

Box2d - Attaching a fired arrow to a moving enemy

I am firing an arrow from the player to moving enemies. When the arrow hits the enemy, I want it to attach exactly where it hit and cause the enemy (a square) to tumble to the ground. Excluding the ...
Satchmo Brown's user avatar
1 vote
1 answer
715 views

How can i get a value from object in tmx file in Cocos2d x 3.x?

I want to set my sprite in x coordinate based on an object in TMX map file, this is my code: ...
Abdalltif Basher's user avatar
1 vote
0 answers
2k views

Parallax Scrolling Road-2D [duplicate]

I'm working on a racing game which will have a top view from the back camera. The image below displays a similar example. I am confused about how to achieve the movement of the road if parallax ...
Haider's user avatar
  • 155
1 vote
0 answers
491 views

Cocos2d-x: Differences between applying shader to child node and entire scene?

I'm beginning with shader. I wonder what if i apply shader for single node, what'll happen? The gl_FragCoord = (0.5,0.5) is the bottom left of the screen or the ...
TomSawyer's user avatar
  • 243
1 vote
1 answer
2k views

Simple way to post score from my game to Facebook and Twitter?

What's the best and simple way to post score from my game to Facebook and Twitter with store link in cocos2d-x?
2600th's user avatar
  • 991
0 votes
1 answer
976 views

cocos2dx: RunningScene != Scene You just Replace

I have this code for cocos2d-x 3.x: ...
Emadpres's user avatar
  • 940