Quantcast
Channel: cocos2d-x - Cocos Forums
Browsing all 2748 articles
Browse latest View live
↧

Box2d - applyforce inconsistent behavior

@zase11 wrote: I am using box2d to simulate projectile motion from a cannon. I am calculating the angle and distance between the cannon barrel and the crosshair. The greater the distance between the...

View Article


Sprites are all black in android when using setColor()

@squashmode wrote: In the game I am working on I have sprites that are greyscale, and I call setColor() on them to set them to various colors when they are created. This works great on the win32...

View Article


Short Tutorial: cocos2d metaballs the principle of 2d liquids and water

@Joseph39 wrote: i wanna make this short so let's begini found a great article on how to make meatballs but the implementation was written in javascript!...

View Article

Cocos2d-x ui is horrible

@sheshmoshen wrote: The cocos2d-x ui namespace needs to be perfected it's horrible.So much bugs and issues simple layout positioning is a burden it's not good at all.Some one needs to fix it in 3.15!...

View Article

How to communicate javascript code with code in Android studio

@basicstepsJ wrote: Hi....I'm newcomer in cocos framework... I have created game in Cocos creator and built it for Android Studio. Language is javascript. Everything works good. Next step I must do...

View Article


Broadcasting with Replay Kit

@j_jorge wrote: I have implemented the broadcast feature of Apple's Replay Kit in my Cocos2d-x game and I am facing some issues. Mainly, the broadcast seems to start (i.e. there is no error on the...

View Article

Can't compile cocos2d-x for android studio

@redyredy123 wrote: HIWhen i try to import cocos game into android studio i get gradle build error, because i dont have android-22 in sdk folder. I tried changing every value of android 22 in gradle...

View Article

Difference between cocos2dx & cocos creator

@IzzyJM wrote: Does anybody know the difference between these 2 ? is cocos creator just cocos2dx with a UI editor ? and is cocos creator updated every time a new version of cocos2dx comes out to have...

View Article


Problem with buildings-generator (tojs folder)

@basicstepsJ wrote: Hi, I use cocos2dx-js. I add new Custom class in tojs and conf ini to it. When I run ./genbindings.py generation fails.Here is log: .... Generating bindings for target spidermonkey...

View Article


JSBinding problem

@basicstepsJ wrote: Hi,I compiled project, which written in js... And I want bind some classes to native (C++) code....I generate with bindings-generator CustomClass as said in tutorial:...

View Article

Cocos Creator v1.4.0 Cocos Runtime Build error

@basicstepsJ wrote: I try build Cocos from Cocos Creator, but get following error log:Build Failed: Error: Cocos Runtime not support module(s): TiledMap, DragonBones. My actions: 1)...

View Article

When Release 3.15?

@gmfy wrote: When Release 3.15?When Release 3.15? Posts: 3 Participants: 2 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Calling Native Methods

@vishnu_mani wrote: I have one more doubt about. Actually in my Cpp class codes, i need to call Objective C codes from my cpp file(my need is to call sharingActivity in both IOS and android).So please...

View Article


I am trying to draw a line that when the mouse moves that is draws a line,...

@ShadowHunter12 wrote: Here is my code bool AScene::onTouchMoved(Touch* touch, Event* event) { labelTouchInfo->setPosition(touch->getLocation()); auto draw = DrawNode::create(2.0F);...

View Article

Image may be NSFW.
Clik here to view.

Create a Curved Moving Rope

@heretic133 wrote: Hi, I want to create a scene like this: 1.png814x574 19.4 KB as you can see in this scene there is a table and there are two pulleys at its sides and there is going to a car in the...

View Article


Can't generate jsb using new NDK (Crash when generating engine bindings)

@Kellon29 wrote: Hello.I'm trying to generate my own jsb using tutorial, but when i trying to use genbindings.py all crashing after: .... Generating bindings for target spidermonkey .... .......

View Article

Android NDK: MyGame_shared depends on undefined modules: android_native_app_glue

@jaunt wrote: Hello, So I downloaded 3.14.1, created a brand new project, copied all my game classes over from 3.10 (and rewrote them to deal with all the changes) but I can't build android. I'm...

View Article


EGL_BAD_CONFIG on few devices

@th7nder wrote: Hi guys! I've got this problem - I've written very simple game and it works all good on iOS, but when I compiled it for android it does not launch on simulator and for example physical...

View Article

AudioEngine Bug on Cocos2d-x 3.14 (was good at 3.9)

@sevent7 wrote: I build project in 3.14 and run smooth on all our android test devices except for the Galaxy S7 edge, it is become laggy everytime it play any audio (sometimes it doesn't play with...

View Article

Inbuild Physics Issue

@sunil9038 wrote: I am using inbuild physics in my game.But some times physics body started falling down in the direction of gravity and disappears.Have any one faced this kind of issue? Posts: 3...

View Article
Browsing all 2748 articles
Browse latest View live