Questions tagged [cocos2d-x-js]
The cocos2d-x-js tag has no summary.
22 questions
0
votes
1
answer
55
views
Stop mouse joint from dragging current rigidBody without mouse-up?
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 ...
0
votes
0
answers
249
views
How to take input from featured mobile phone in cocos creator?
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 ...
2
votes
0
answers
73
views
What is the right way to implement a loading screen in cocos2d-js?
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.
...
0
votes
1
answer
990
views
Cocos Creator - orientation change event in native build for iPhone and Android
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 ...
1
vote
0
answers
178
views
Acceptable memory size consumed by mobile game in 2017? [closed]
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 ...
1
vote
1
answer
70
views
Help understanding the parkour tutorial in Cocos2d
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 ...
0
votes
0
answers
82
views
Cocos2D - Detect how many items an object collided with / negating more than one object
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 ...
0
votes
1
answer
524
views
How to include a new file js in a project cocos2d js?
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 ...
1
vote
0
answers
433
views
How can I make a sprite based animation using Cocos2d JS?
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:
...
3
votes
1
answer
704
views
Color Based Collision Javascript (Cocos2d-js)
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 ...
1
vote
0
answers
135
views
Can project.json jsList accept folder names?
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 ...
1
vote
0
answers
287
views
Error with Cocos2d-JS when using Skeletal animation from Cocos Studio
Here is the JavaScript code:
...
2
votes
2
answers
2k
views
Saving data in the local computer with cocos2d-js
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 ...
0
votes
1
answer
510
views
Location of project.json in Cocos2d-JS
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 ...
1
vote
0
answers
441
views
Best way to transition between multiple Cocostudio defined scenes
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:
...