Questions tagged [cocoscreator]
Cocos Creator is a complete package of game development tools and workflow, including a game engine (based on Cocos2d-x), resource management, scene editing, game preview, debug and publish one project to multiple platforms.
cocoscreator
91
questions
0
votes
0
answers
18
views
Cocos Creator 3.7 Programmatically editing animated clips question
Creator version: 3.7.2
Target platform: Chrome
Problem: Why doesn't the animation move when using a script to edit the Animation animation, I've confirmed that the track is already mounted on ...
0
votes
0
answers
26
views
How to integrate Socket.IO in Cocos Project made in Cocos Creator 3.8.3?
I am trying to integrate Socket.IO client in my project developed in Cocos Creator 3.8.3. But every time I try to connect to the server an error appears. My research on the internet and some help with ...
0
votes
1
answer
28
views
Need help in getting virtual keyboard height in native code of cocos creator?
I have added one edit box that will be placed on bottom part of the screen, on clicking the edit box keyboard opens and I want the edit box to appear just above the virtual keyboard in android.,
Now i ...
0
votes
1
answer
117
views
How to get mouse button with node.on(Node.EventType.TOUCH_START) in CC 3.8?
I am developing a game in Cocos Creator 3.8.2 in which the user clicks their mouse and a different command is run for clicking different mouse buttons. I've searched far and wide across the Internet ...
0
votes
4
answers
76
views
How to get indexOf nested array in any array?
In Cocos TypeScript (I'm using the Cocos Creator 3.8 game engine), I have an array "foo". I also have arrays nested into foo such that foo = [[0, 0], [3, 2]];
However, when I attempt to call ...
1
vote
0
answers
31
views
TypeScript Replace Between Letters
I have a problem with the "replace" method. It doesn't work correctly. I'm working with the game engine Cocos Creator v.3.8.1.
I need to place spaces in a string between letters, and 3 ...
0
votes
0
answers
48
views
Cocos Creator & VSCode breakpoint error in Mac
I trying install cocos Creator & Vscode in Mac OS pc. and I try debug with chrome.
I install plugin Chrome Extiontion Developer. and Cocos Debug.
And I set launch.json like this.
And I Also give ...
0
votes
0
answers
27
views
How to use context leaderboard in facebook instant game sdk
I am using Cocos Creator with TypeScript to code a Facebook Instant Game. My game is a single-player game, and I want to save the scores of all players to create a leaderboard and then retrieve the ...
0
votes
0
answers
176
views
How to add npm package to cocos creator project?
I have a problem with adding npm package to Cocos Creator v3.8 project.
I want to add that package because it can be really usefull to read google sheets data in editor time for game configuring.
In ...
0
votes
1
answer
345
views
Why Cocos creator 3.8 tween doesnt work into async func (with Promise)
I`m new in Cocos Creator engine, and now completely stuck with tweening.
I have next tween func in my code:
private magnetTween(pos: Vec3): Tween<Readonly<Vec3>>
{
const ...
0
votes
0
answers
40
views
Add edge/boundary for moving a node based on finger movement and scale of the node to make zoom feature in mobile using Cocos creator 2.4.10v
In cocos creator game engine 2.4.10 version, Have a game with target image which can be marked with x-mark on touch and button panel below the target area. I am trying to make a zoom in and out for ...
0
votes
0
answers
19
views
Shifting a node when opening the keyboard
If you click on the editbox, the keyboard opens. A toolbar is attached to the top of the node and when you call the keyboard, it moves up and goes off the screen. I want the toolbar to be fixed at the ...
1
vote
1
answer
79
views
FBInstant games SDK gives the error "Cannot find name 'FBInstant'.ts(2304)" in Cocos Creator 3.8
FBInstant games SDK gives the error "Cannot find name 'FBInstant'.ts(2304)" in Cocos Creator 3.8.
I have been trying to follow this guide to make the module be detected: https://docs.cocos....
1
vote
0
answers
12
views
How do I make the plane turn and move in a circle to a new angle and not turn immediately?
I'm planning on doing the same with this game: https://play.google.com/store/apps/details?id=pl.macaque.Missiles&gl=US&pli=1
this is my class:
const { ccclass, property } = cc._decorator;
...
0
votes
0
answers
76
views
Secure WebSocket SSL certificate installation in Cocos Creator 3.8+
Prior to Cocos Creator 3.5, you are able to add SSL certificates when creating websocket clients. We are using Cocos Creator 3.8 and we want our game to carry the certificates in case the certificate ...