Cocos Creator supports exporting scenes and prefabs in the current project for use in another project:
1, select the scene or prefab to be exported;
2, select the target to export to Folder locat
Tag: Cocos
COS CREATOR calls the PHP interface, C #, Java ideas
var url=”jk.php”;
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status Actually It is the native js method.
To f
Cocos Creator uses Chrome debugging TS project
1. Add Chrome Debug configuration
Cocos Creator editor interface development ->VS Code Workflow->Add Chrome Debug Configuration
2.VSCode installs the Debug For Chrome plugin
3. Mo
COS CREATOR Module Introduction
Project –> Project Settings –> Select the modules that will be packaged into the engine when building and publishing
The modules are as follows:
Core mandatory Canvas is required, canva
COS CREATOR crossing JS pass parameters, set global parameters
index.js stored value:
cc.sys.localStorage.setItem(“wxuser”,id); left .js value:
var wxuser=cc.sys.localStorage.getItem(“wxuser”);
console.log(“wxuser:”+wxuser); That’s it.
index
iPhone – create a menu in CoCos2D?
I need to know how to make a simple menu with 5 buttons and place them on the right side of the cocos2d screen. Do I create the menu in – (id)init? Any help is appreciated. Thanks! You can use t
Cocos Creator Dynamic Change Sprite Picture
First name the outermost folder for storing pictures resources changeBj: function(){ var url = ‘globalUI/video/gVideoPlayClick’; < /span> var _this = this; cc.loader.loadRes(url,
Cocos Android packaging problem
One. Multi-platform architecture packaging so file
Add the following code to the application.mk file, where TARGET_CPU_API represents the target cpu and APP_ABI represents the compilation
cocos creator box2d
title Map use box2d
var sfloors = this.tiledMap.getObjectGroup(‘Special_Floor’).getObjects(); //Get the object layer here
< span class="hljs-comment">for (let i = 0, l = sfloors. length
H5 game reception parameters created by COCOS Creator
It’s also my first contact with this stuff. It’s just a personal summary. I hope you don’t mislead you. Welcome to give me some advice.
onLoad: function () {
function GetRequest() {//This fu