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

Image may be NSFW.
Clik here to view.

How to make cocos 2d window big (windows)

Hello I was wondering if anybody knows how can i make the cocos helloproject window big, instead of it looking like this I want to be able to make it big. I would appreciate any help thank you 2 posts...

View Article


Image may be NSFW.
Clik here to view.

Error trying to implement tiled map

Hello, Im new to both cocos2d and c++ im making a game I already did the menu and when I click enter i need a game scene to be implemented, im working on the game map now, and when I write it on my...

View Article


Image may be NSFW.
Clik here to view.

How to set position use anchor point Vec2(0.5, 0.5) like cocos creator?

How to set position in center of parent node with anchor point (0.5, 0.5) like cocos creator do in c++? 1 post - 1 participant Read full topic

View Article

AudioEngine or SimpleAudioEngine doesn't play simultaneously

I tried both AudioEngine and SimpleAudioEngine but both doesn’t play simultaneos play, neither Windows 7 or Android. Whenever program calls simultaneous sound effect which is overlaping with another...

View Article

Anyone still using 3.17.2 Javascript?

I have an old project in javascript version, I needed to upgrade the targetSdkVersion so I created a new project with cocos2dx 3.17.2 in Javascript, I tried the blank project to run on an android...

View Article


How would I make a game loop?

It’s been a very long time since I last used cocos2d-x, so I’ve forgotten a lot of things. I’ve been searching for a while now how to make a game loop, but all the tutorials I found were outdated. How...

View Article

How to render sprite as tiled in cocos creator?

How to render sprite as tiled in cocos creator in c++? 1 post - 1 participant Read full topic

View Article

intersectRect not working with a sprite if is a child?

Hello, I was wondering why this is not working. I have a spriteA moving across spriteB and spirteC. spriteB is a child of a node. And the intersection is only detected with sprite C, so it seem that...

View Article


Can you rate the autopilot?

My work:https://www.youtube.com/embed/0pRu9blhXvQ The key feature of the designed autopilot is the ability for real-time operation in any traffic situation. The autopilot is based on AI. AI has only...

View Article


Need help with Box2d and Threading

Hi all any one know about the difference in cocos2dx ? dose calling CC_SCHEDULE_SELECTOR create a separate thread or dose it run in the main thread of cocosa2dx as I know that most hardware now has...

View Article

Calling a lambda func inside scheduler not working?

Hello, here is my code #include "HelloWorldScene.h" USING_NS_CC; Scene* HelloWorld::createScene() { auto scene = HelloWorld::create(); return scene; } void HelloWorld::myMethodA(int value) {...

View Article

Anyone using photon realtime for v 3.17.2 or 4

anyone using photon realtime for v 3.17.2 or 4 successfully? I’m in a serious trouble, I’m in need of help. I can’t get working with 3.17.2 and the latest version of Photon sdk. Old version of Photon...

View Article

Image may be NSFW.
Clik here to view.

It doesn't run on the simulator

It runs on the device.but It doesn’t run on the simulator. error message : Users/xxx/Library/Developer/Xcode/DerivedData/xxxx-aadkbzwkvepclqexycrdeyztiyxn/Build/Products/Debug-iphonesimulator/xxxx.app...

View Article


Crash in TextureCache::loadImage()

This happens with 3.17.2 and 4.0 on Android devices. I get an intermittent crash in TextureCache::loadImage() on the call to: _sleepCondition.wait(ul); Another user posted the same thing back in 2020,...

View Article

Image may be NSFW.
Clik here to view.

New id with each shound?

Hello, bellow I’ve attach the output of what happens everytime I shoot a bullet as you see a new sound id is created each time. Is this normal? This doesn’t feel right. All I am doing is setting the...

View Article


Why was SimpleAudioEngine removed?

I’m just wondering what the reason behind this was, I did look through the forums, but couldn’t really find any topic explaining the reasoning behind this. Was there something wrong with it, or was...

View Article

Unknow type name attribute when trying the vertex shader test

Hello, I started learning about shading in cocos2dx, so this is probably something silly. I am using one of tests. It is the following .vsh attribute vec4 a_position; attribute vec2 a_texCoord;...

View Article


Project not showing cocos2dx library in code

hi everyone, i have been working on a project and faced a strange problem where my project in not showing any functionality of cocos2dx where as all ,y other projects are working fine. i also tried to...

View Article

Passing a method with a parameter to a Scheduler

Hello, I am aware that there are threads about this topic. I’ve read them but it didn’t really work for me. So I wanted to post a very simple example to see if someone can make it work. #include...

View Article

Can someone provide a working shader code for cocos2dx 4?

Hello, before refering me to the tests or explaining in the theory what a shader is and how code it, can someone actually share a simple working code to apply to a sprite? I have been researching for...

View Article
Browsing all 2748 articles
Browse latest View live