Skip to main content

Questions tagged [cocos2d-x-js]

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

I have a hero, I drag him with-mouse joint attached to his rigidBody. But I want to stop dragging him when he hits a trap. I want the mouse-joint stop working without event "touch-end" being ...
David Tran's user avatar
0 votes
0 answers
268 views

I am beginner to cocos creator and I came to know cocos has Keyboard,DeviceMotion and Mouse input event but I want to know how to take input from featured mobile phone having number pad? Will it be ...
Aryaman Gupta's user avatar
2 votes
0 answers
82 views

We have two scenes that are loaded with heavy computation; a map screen and a puzzle screen. When we change the scene from A to B, the app gets stuck on scene A for a while before it renders scene B. ...
ramiz balayil's user avatar
0 votes
1 answer
1k views

I am making some Hybrid app which has some native part in Both iOS and Android and common functionality (which includes and games/animation and UI) which I make in Cocos Creator. The problem I am ...
Balazs Nemeth's user avatar
1 vote
0 answers
183 views

How do you think, what is the acceptable memory size consumed by mobile game in 2017, taking into account current state of mobile devices hardware performance? I've made a pack of optimizations using ...
heximal's user avatar
  • 111
1 vote
1 answer
85 views

I was practicing the parkour tutorial for chapter 7, but I failed to understand why we should move the same delta movement of this.gameLayer, which contains the ...
user100497's user avatar
0 votes
0 answers
87 views

In creating a small breakout clone, I've managed to get the ball to bounce whenever it hits a block by negating (or multiplying by -1) either the X or the Y values. This works, at least until the ...
zack_falcon's user avatar
0 votes
1 answer
533 views

I'm trying to include a new js file containing a new scene on a cocos2d js project, but every time try occurs the following error: Uncaught ReferenceError: GameScene is not defined. I included my ...
Italo Uelisson's user avatar
1 vote
0 answers
439 views

I am learning Cocos2d JS, but I can find very few tutorials and I find the documentation very vague. I can put a simple image on a layer like this: ...
Aidas Bendoraitis's user avatar
3 votes
1 answer
721 views

I'm looking to make an isometric game so my partner designed the isometric map (jpg image) along with the map objects (png) on Adobe Illustrator. The thing is I would like to set the player path based ...
Javier's user avatar
  • 31
1 vote
0 answers
138 views

Using cocos2d for the web/js, it seems every script file must be explicitly added to project.json. Is there a way to give it a path instead, and it will load all scripts in the folder (and sub-folders ...
Eric's user avatar
  • 11
1 vote
0 answers
294 views

Here is the JavaScript code: ...
Dannel.wu's user avatar
2 votes
2 answers
2k views

Making a game with cocos2d-js, is there a reliable way to create saved data in my local computer? I see that there is cc.sys.localStorage but it is removed if the ...
Saturn's user avatar
  • 1,763
0 votes
1 answer
520 views

I am learning Cocos2d-JS to develop web-based games with Javascript. In Cocos2d-JS there is project.json file which defines game configuration. Is it possible to ...
Aidas Bendoraitis's user avatar
1 vote
0 answers
449 views

I'm designing a game that has to switch between multiple game scenes. Each scene has been created in cocostudio and is imported into the code as a json file as: ...
Danni's user avatar
  • 11
1 vote
1 answer
1k views

I've been looking for a way to make my Cocos2D-JS app go into fullscreen mode, but there doesn't seem to be much documentation on Cocos2D-JS (or Cocos2D-x-js as some seem to call it.) This app is to ...
Cramps's user avatar
  • 121
0 votes
1 answer
156 views

I am trying to create a new JavaScript project on Cocos Code IDE but every time it immediately give me the error message: Unable to find python. Please, click the ...
zbs's user avatar
  • 111
2 votes
1 answer
3k views

I am making a game on cocos2d-JS for Facebook. What is the difference between Facebook Canvas & Facebook Web project. From what I can tell, Facebook Canvas ask for the secure url and Web ask for ...
user1169079's user avatar
5 votes
1 answer
2k views

How to read a color of a pixel at [x,y] from a texture (in cocos2d-js)?
topright's user avatar
  • 1,310
5 votes
2 answers
3k views

I need to create a message box with an "OK"-button. When the user touches the button, it should execute a callback. I'm new to this and couldn't find any articles in the docs.
Thushar G R's user avatar
5 votes
1 answer
7k views

I'm just moving towards native apps... A friend of mine told me to start with cocos2d, I'm good in javascript. While searching google for cocos2d, and within cocos2d-x.org I found cocos2d-x cocos2d-...
MFarooqi's user avatar
  • 153
1 vote
2 answers
1k views

I need to list all the files in the res folder from a JavaScript script in cocos2d-x. What would be the most efficient way to do this? To keep compatibility with ...
Coyote's user avatar
  • 3,230