raycast doesnt work with moving scene (Follow)
I successfully created raycast, thanks to cpp-test examples. But when I use Follow::createWithOffset on my hero then raycast only works on initial screen! raycast draws but doesnt recognise collisions...
View ArticleScaling sprite results as rotated image
Hii, hope you all are fine. I am creating an Android project and using an image for the background and scaling it to the size of the screen, but it results as 180 degree rotated image. here is my...
View ArticleApp does not display normally after closing multi window (in Android 10+)
Hello. After my Cocos2d-x app “Divide and Rule” start, user makes a multi-window, starting another app; so my app get screen resize notification and it properly resizes (become smaller). So there are...
View ArticleNode's Position Doesn't Stay Synced With the One on the Screen After Bouncing...
So I got one dynamic object on the world, and it’s moving because I’ve set it some velocity. However, when I try to get its position, I get the accurate one for as long as it doesn’t collide with...
View ArticleFunction parameters from touch event
How can I pass a function parameters from touch event Example I have a function like: coinMove(x){ … }; I want to pass parameter value of ‘x’ from: this.node.on(cc.Node.EventType.TOUCH_START,...
View ArticleWhite border around sprite above videoPlayer
Hi, following tutorial here I made my VideoPlayer to be under the Canvas. I need some graphic elements to be over the video playing in the background. Now I face a problem with Sprites which is over...
View ArticleXiaomi devices - how to disable "Install via USB" dialog on "adb install my.apk"
Hi, I have automated process of installation apps on Android devices. It works fine for me for all android devices except of Xiaomi MI 9, MIUI 12 Each time command adb install my.apk shows on device...
View ArticleCocos2d-x 4.0 Setup on Ubuntu 20.04.1 LTS
Hello, I am trying to set up cocos22d-x 4.0 on my Ubuntu 20.04.1 LTS OS, the install-deps-linux.sh command gives the following warning “W: --force-yes is deprecated, use one of the options starting...
View ArticleBlendfunc behaviour CCLayerGradient
Hi, I am trying to figure out how to change the behaviour of blending when using CCLayerGradient (Cocos2d-x 2.2.6). I am testing a few different blendfunc combinations, and got stuck on this one:...
View ArticleUnable to build Xcode project after importing sdkbox
Hi. I created a new project with cocos2d-x v4 and imported admob with sdkbox. The build was canceled when I tried to run it in Xcode. スクリーンショット 2020-08-23 23.18.221935×387 68.5 KB I don’t know the...
View ArticleHow can I connect cocos2dx to a server
I need the server to out and take off data 4 posts - 3 participants Read full topic
View Articleon Trigger, this trigger node is disable
Hi! I make a 3D game and want to know how to to disable coin when player enter in coin’s trigger ? 1 post - 1 participant Read full topic
View ArticleConsidering to upgrade to 4.0 - is it worth it?
Hi there, I am currently planning to upgrade from 3.17 to 4.0 for my iOS/Android game currently in development. The main reason behind it is metal support offered by 4.0. However I am unsure because:...
View ArticleReceived a notification in AdMob for updates in iOS apps
Prepare your apps for iOS 14 Apple announced the new AppTrackingTransparency framework, which requires changes to your iOS apps. Implement the GMA SDK 7.64.0 (or later) and set up consent messaging to...
View ArticleCamera with FBO does not clear DepthBuffer
Hello I’m trying to implement a kind of CCTV window, showing 3d scene. For the test, added code bellow in \cocos2d-x-3.17.2\tests\cpp-tests\Classes\Camera3DTest Camera3DTest.cpp...
View ArticleSound engine vs mute vs bad reviews?
Hi, we’re getting quite a few 1-star reviews from iOS users (not all of them) complaining about no sound in our games. (As our games’ main purpose it to teach little children English, sound is crucial...
View Article"ccconsole.h, ccutf8.h error, expected a {"
Hello there, I have encountered a very problematic bug. I cannot build my project, because I keep getting these errors image1533×101 8.1 KB Basically it gives of an error code that signifies there are...
View ArticleSome Newly Created Nodes Appear at the Bottom-Left Corner of the Scene...
So I got an instance of DrawNode, called Food, which is essentially just a solid yellow circle, created through this static method: DrawNode* Food::create(const Vec2 &position) { auto node =...
View ArticleExtending Sprite Class
Hi I have a class named MySprite which inherent Sprite and adds a bunch of properties to it. Created a Factory class called createMySprite which calls MySprite* theSprite =...
View Articlelibcocos2dx] Could not find libcocos2dx.apk!
I just get a very old project, then I get this error. I search the form but didn’t find a solution. I want to know how can I get more specific error. I read two thread in this forum, I think many...
View Article