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

Image may be NSFW.
Clik here to view.

Anyone knows how to put banner ads at bottom of game?

@ousaf wrote: I have iOS exported game project from cocos creator as the game opens in full screen so placing banner ad view as subview of game view makes banner ad overlay on the game canvas. I want...

View Article


Image may be NSFW.
Clik here to view.

APK size too big after build. Lib folder after unzip is over 1.3GB

@john_daniel wrote: Hi everyone, I am using Android Studio to build android game, the apk file after build is too big. My resource just 180MB but final apk size is over 440MB. I try extract the apk...

View Article


Cocos2d-x v4 adding new file after installing

@kemalb wrote: Hi, I was using v3.17 but Apple will not allow contains UIWebKit from April, 2020 for new app. So, I want to start new project with new version. I downloaded v4 from website. I created...

View Article

Cocos2dx v4 run by xcode simulator

@imo0101 wrote: I built with cocos2dx v4. I was able to build on the iPhone8(ios12.4). But the simulator crashes. simulator setting Target ios 12.4 or 13.2 Simulator iPhone8 or 11 log Metal API...

View Article

Image may be NSFW.
Clik here to view.

Building a Facebook Instant Game?

@FILMon wrote: Hi first time Coco Citizen I want to build a really simple game but am having a lot of trouble doing the simplest stuff like a mouse button. Is there anyone who can help me get started....

View Article


Run game on iPhone real device

@jonseg wrote: Hi, How can I run the game on an attached iPhone? I execute: cocos run -p ios But It opens the simulator (that not support metal), so I want specify the iOS real device. Thank you....

View Article

cocos js Particle effect does not work any more

@brighthead1995 wrote: Hi, there, Happy new year I’m using cocos js for some time, now i got a problem is that if i create a new gamemodel included a particle effect from a json file, the particle...

View Article

Cocos2d-x v4 cocoapod not working

@kiranb47 wrote: Getting this error ld: library not found for -lPods- clang: error: linker command failed with exit code 1 (use -v to see invocation) I did just like what in this documentation says....

View Article


My code not error, but my game force stop

@ataf wrote: hello everyone! im new to all this cocos2d-x world, when i open level 1 my game force close, this is my code “.h” and “.cpp” level1.cpp (29.2 KB) level1.h (2.7 KB) thanks Posts: 2...

View Article


Physics collision cause program to abort

@OrionSteel wrote: Hi. I am working on learning Cocos2d-x (v3.17.2) by programming the classic artillery game (2 cannons fire shells in hyperbolic arc at given angle and force - simple but covers...

View Article

Is it possible to get events (subscribe) from certain sprite?

@doxes wrote: I want to check my physicsbody sprite is resting or not but I want it with best approach to performance reason. Instead manually checking sprite isResting, sprite should emit resting...

View Article

_listView->removeAllItems() MEMORY LEAK

@dragon0962 wrote: Hi all, When I call (cocos2d::ui::Listview) _listView->removeAllItems() method , why all items of listview not released ? As you can see the output below, the ReferenceCount of...

View Article

Crash with new AudioEngine code in v4.0

@BonBonSlick wrote: This error exists in cocos2d v4.0 bool PlayScene::init() { if (!Scene::init()) { return false; } AudioEngine::preload(“sounds/hit.mp3”); .... AudioEngine::play2d("sounds/hit.mp3");...

View Article


Follow and unfollow sprite

@doxes wrote: I am trying to follow and unfollow sprite by using this->runAction(action) and this->stopAction(action) this error thrown (but If i use run-stop actions out of schedule scope it...

View Article

TableView's inconsistent behaviour

@nedumaran wrote: I am using TableView in two different areas in my app. The behaviour is strangely different while I think the code is similar. The desired behaviour is as in the video below. When I...

View Article


How to get position of sprite on visible rect

@doxes wrote: Suppose I have sprite and i set its position randomly, how can determine sprite is visible on screen or not and if visible get relative location on screen. I am asking this to make mario...

View Article

Is SimpleAudioEngine being maintained in the future?

@digimikeh wrote: Hello! I’m still a bit confused on how to reuse a clip on AudioEngine library, but it is not necessary for my game to use it, so i can switch back to SimpleAudioEngine… I have...

View Article


How to take iOS build in CMake(3.16.2) of Cocos2d-x-4.0

@Sumanth_kumar wrote: Hi, I’am facing a issue in taking new iOS build in Cocos2d-x-4.0, where i’am using CMake(3.16.2) also. Xcode(10.1) is the code editor. Usually we used to take debug build in the...

View Article

Cocos2dx 3.17 Android Studio curl linker error

@NairodSuraidal wrote: Environment: Windows 10 Cocos2dx 3.17.2 Android Studio 3.5.3 Hello I am using a roughly new cocos2dx project android studio project and everything works fine until i add in...

View Article

Compiling cocos2d-x sample LiquidFun-Testbed Xcode 10.2 - Missing files on...

@hansah wrote: I’ve been trying to build the cocos2d-x samples by following the steps from https://github.com/cocos2d/cocos2d-x-samples exactly, namely Download $ git clone...

View Article
Browsing all 2748 articles
Browse latest View live