Questions tagged [cocostudio]

17 questions
4
votes
1 answer

cocostudio: How do I use exported scene file. Does CCSceneReader work for anyone?

I created a new scene in cocostudio and exported it. That export included a json file for the scene and a couple other directories with the images and so forth. I installed cocostudio and cocos2dx 3.0 fresh today. I keep running in to this like of…
erparker
  • 1,301
  • 10
  • 21
3
votes
2 answers

how to use .csb file after published project from cocostudio

I have created a UI for my game. after published project from cocostudio I have got .csb file. how to use it in my game?
DDa
  • 41
  • 1
  • 2
3
votes
1 answer

CocoStudio: Possible to generate dynamic sized scene for cross-platform use?

Is it possible to make a scene, or maybe UI element in cocostudio that scales with the size of the app? I'm using cocos2d-x and want to make sure I accommodate many screen sizes since the app is cross-platform. As of now, I make my UI elements, add…
erparker
  • 1,301
  • 10
  • 21
2
votes
2 answers

C++ error No matching member function for call to addtoucheventlistener

I'm new with cocos2d-x. I'm getting error in this line : Button* btnRegister=static_cast(Helper::seekWidgetByName(m_pLayout, "btnRegister")); btnRegister->addTouchEventListener(CC_CALLBACK_0(LoginScene::GameLoginTest, this));//get error no…
1
vote
1 answer

What is the use of setDesignResolutionSize in cocos studio?

In my appDelegate class i have code something like this, while using cocos studio auto glview = director->getOpenGLView(); if(!glview) { glview = GLViewImpl::createWithRect("HelloCpp", Rect(0, 0, 960, 640)); …
Mahesh
  • 40
  • 10
1
vote
1 answer

"Python exec is not exist" when creating new project in Cocos Studio

I've just started with Cocos2D gaming engine. I was following the official documentation to setup my machine for the development. Everything went smoothly, but when I tried to create a new project, it fails with an error message stating Python…
Vishal Sharma
  • 2,550
  • 1
  • 23
  • 40
1
vote
2 answers

Run scene generated in CocosStudio?

I'm trying to figure out the cocos2d Javascript environment. I'm using Cocos Studio v2.1 beta to generate a scene. Right now the scene just has a label so I can know if it worked. I publish it to a Cocos Code IDE project created by Cocos Studio.…
Corey Ogburn
  • 24,072
  • 31
  • 113
  • 188
1
vote
0 answers

How to get string data from input textfield when user input in cocos2d-x

I'm making a login Scene but i dont know how to getstringvalue from the textfield Could anyone show me how to get string data from input textfield when user input I have already created the layout with cocostudio like that: I have tried std:string…
1
vote
0 answers

Cant move the layout up when keyboard presented

I'm trying to move the layout up when the keyboard is presented cause it hides my input textfield but my app crash from line HASH_FIND_PTR(_targets, &tmp, element); from this class void ActionManager::addAction(Action *action, Node *target, bool…
0
votes
1 answer

Cocos Studio: Cocos Framework is not installed error

I installed Cocos Studio v2.3.3 to C:\Cocos using the link to a non-framework included package on the cocos2d-x.org site. I then unpacked cocos2d-x v3.9 using the zip file provided into the C:\Cocos\frameworks\cocos2d-x-3.9 - but Cocos Studio…
Vijay Varadan
  • 629
  • 5
  • 18
0
votes
2 answers

cocos2d-x CSLoader how to load selected nodes only

I'm searching for docs on cocos2dx website and on google but i couldn't find any. The problem is, when I load a csb file from cocostudio, it loads all the nodes and its resources etc... it makes the texture memory so high. I would like to know if…
0
votes
1 answer

CSLoader not working with Windows phone 8

I am working in Cocos2d-x v3.3 and Cocostudio v2.0.6. I followed the instructions to create and load files CSB. I built in Android and Windows Phone 8. But it works in Android and crash in Windows Phone 8. I checked and found this line fails: auto…
0
votes
1 answer

How to transfer published resources from CocoStudio to Xcode?

using CocoStudio 2.0.6 and Xcode 6.1.1 on MAC inside VMware. After publishing in CocoStudio I open Xcode and "Add Files to myProject" with the "Copy items if needed" option checked. Then I have the folder myProject/res created by CocoStudio inside…
user4406260
  • 11
  • 1
  • 4
0
votes
1 answer

Xcode incorrectly load file CSB

I am working in Cocos2d-x v3.3 and Cocostudio v2.0.6. I followed the instructions to create and load files CSB onto xcode, but it works in Windows and failed in MacOS. XCode can not read the sub-control and show the black screen in Simulator. Node*…
0
votes
1 answer

cocos2d-js cocostudio "Illegal buffer" error

var node = ccs.csLoader.createNode("res/some_cocostudio_file.csb"); Cocos2d-JS v3.1 Uncaught TypeError: Illegal buffer I'm tried csb files from js-tests - same result... But js-tests run well...
Vladimir Vovk
  • 688
  • 8
  • 9
1
2