Quantcast
Channel: Cocos Forums - Latest topics
Browsing all 17115 articles
Browse latest View live
↧

Sprite goes haywire when created with initWithFile though works just fine...

@EvilDeveloper wrote: Hi,I create a Sprite with initWithSpriteFrameName ,then it's physics works as it should, but if I create the same with initWithFile then sprite seems to go downwards with...

View Article


Simple spline interpolation library for touch input analysis?

@MatrixAndrew wrote: I'm looking for something like this but a much simpler one (C++). It should be easy to use, fast, dependency-free and it should be able to compute linear/quadratic/cubic...

View Article


cocos2d-x TextHAlignment::LEFT not working on iphone

@cocos99d wrote: Hi, I created a Label and LEFT alignment is working on Android device and in iOS simulator but not on my iPhone. Here is the code: auto labelB4 = Label::createWithSystemFont(TEXT_B4,...

View Article

Getting started with Studio&JS

@Abdou23 wrote: Recently I discovered that I can code games in cocos2d-x using JS or Lua, with a visual&code editor, I got very excited and started researching more, in the main page of the...

View Article

[SOLVED]Facebook login error

@PedroVicente wrote: I am using the same code as the one in the Facebook sample in my app https://github.com/sdkbox/sdkbox-facebook-sample After these calls sdkbox::PluginFacebook::init();...

View Article


Can we use javascript ecma 6 (es6) in cocos2d js?

@eydamson wrote: hi is it possible to use es6 as our coding style in cocos2d js? would it still be able to run when we compile it into native platform? Posts: 1 Participants: 1 Read full topic

View Article

[SOLVED] IAP error on purchase

@PedroVicente wrote: I am following the sample http://docs.sdkbox.com/en/plugins/iap/v3-cpp/ but I have this error in my app after sdkbox::IAP::init(); sdkbox::IAP::setDebug(true);...

View Article

[SOLVED]MenuItemImage change image dynamically

@PedroVicente wrote: Is there a way to change image for a MenuItemImage? I am using on create m_menu_item_facebook = MenuItemImage::create( str_facebook_img, str_facebook_img, str_facebook_img,...

View Article


To use SD graphics for iphone apps

@djvoracious wrote: Hi all, I am just wondering if its worth supporting non retina graphics for iphone games. Since Xcode 7, there isn't any support for pre 8 simulators. Which used to have iPhone 4...

View Article


Image may be NSFW.
Clik here to view.

Built In Physics problem on iOS

@Dazlonar wrote: Hello everyone! I’ve found an interesting physics bug on iOS device. When two dynamic objects collide, they twitch on iOS but work well on win32 and mac. For example you can run...

View Article

A discussion on Ad Plugins

@BMG_Blake wrote: Hey guys, I am looking into all of the plugins for ads for my game. I had a few questions to guide me (and potential future SDKBOX users) to figure out what is the best way to make...

View Article

My game was rejected because using Adcolony

@JffGames wrote: Hi everyone, help me about "content rating" for my game, or which Adcolony video type i should choice for my game. the Google was rejected my game 2 times. Help me. Many thanks!!!!...

View Article

Image may be NSFW.
Clik here to view.

Scale9Sprite: setColor does not work on canvas mode

@zhan wrote: Hi! I'm using cocos2d-html5 v3.8. I want to use a scale 9 sprite and setColor at certain case in game. I recognize that when I turn renderMode to 1 ( canvas mode), setColor does not work...

View Article


Radial Gradient

@rcpadilha wrote: I need to have a radial gradient layer on my menu screen, and I would like to know if there is any way I can do that using GradientLayer, or if there is another class (maybe 3rd...

View Article

Use RenderTexture without addChild

@naghekyan wrote: Here is my code: SpriteFrame* frame = SpriteFrameCache::getInstance()->getSpriteFrameByName("big.png"); Sprite* sprite = Sprite::createWithSpriteFrame(frame);...

View Article


How to get the pixels value of a png picture?

@yixiaoqingyuz wrote: I am using the cocos2d-x v3.8.1.I have tried this code to get the pixels value of a png picture,but got empty data. Image * img = new...

View Article

Use Noise effect like in Photoshop

@rcpadilha wrote: Hello, I need to apply a noise shader to a LayerColor and/or Sprite, just like you can do in Photoshop.Is there any way this can be done? I've found some examples, but none seems to...

View Article


Can't build project for Android (Ubuntu)

@Gdrop wrote: Used this: cocos run -s ~/AndroidStudioProjects/CocosGame -p android Problem: BUILD FAILED /home/user/android-sdk/tools/ant/build.xml:597: The following error occurred while executing...

View Article

How to pause splash screen action for 3 seconds

@SagnikXV wrote: Hello. I sorry if the question has been asked before, I just couldn't find an appropriate solution.I am creating a splash screen where two letters appear on screen for 3 seconds and...

View Article

Crash in v3.9 on touch callback when using std::bind

@aardvarkk wrote: I'm getting a reproducible crash on a touch callback in Cocos2d-x v3.9. The setup is this: I want to use a member function as a callback to a touch event on a button, so I used...

View Article
Browsing all 17115 articles
Browse latest View live