- Totals0
- Participants0
Welcome to the developer's world! You can find developers from all over the world here. Feel free to discuss, share, and help each other with everything related to game creation! In the Game Design section, you can discuss gameplay, level design, background story, etc.; Form a team or simply ask for game resources such as orignal art paintings, special effects, sound effects, characters, scenes, and items in the Game Resources section; If you encounter any problems regarding code implementation, Scripting section is ready for all creators. You are also welcome to share your daily mood and your development progress - write whatever you want in Free Talk! Together with all creators, let's explore the magical world of Blockman GO - Adventure together!
-
Skill realization: summon a monster
hang Su 2022.03.31 232 1Code: Client script: local function MonsterspawnRequests(mosterId) PackageHandlers.sendClientHandler("MonsteSpawn",{mosterId}, function() print("A monster build request has been sent") end) end summonBar.Moster_1.onMouseClick = function(instance, window) if(gold>=monstersButtons[1].cost) then gold=gold-monstersButtons[1].cost goldText:setText("Gold:"..gold) MonsterspawnRequests(monstersButtons[1].id) end end Server-side script: PackageHandlers.registerServerHandler("MonsteSpawn", function(player, parameter) local mosterId=pa...
-
Guide: Register the server communication protocol
hang Su 2022.03.31 195 0local DBHandler = require "dbhandler" PackageHandlers.registerServerHandler("LevelChangeServer", function(player, packet) DBHandler:setData(player.platformUserId, 51, packet[1],true) World.CurWorld.SystemNotice(1, "level up: "..string.format("%.0f",packet[1]), 40) end) PackageHandlers.registerServerHandler("ExpChangeServer", function(player, packet) DBHandler:setData(player.platformUserId, 52, packet[1],true) end)
-
Code sharing: modify character skins while casting abil...
hang Su 2022.03.31 204 0local player_skill = params.player_skill print("27[4;34;43m--------release silks--------27[0m") local skinData = { custom_wing = "custom_wing_6" } player_skill:changeSkin(skinData) World.Timer(36,function() skinData = { custom_wing = "custom_wing_7" } player_skill:changeSkin(skinData) return false end)
-
Guide: Register the client communication protocol
hang Su 2022.03.31 205 0PackageHandlers.registerClientHandler("LevelSendClient", function(player, packet) if (packet[1] == "") then print("packet[1] is empty") packet[1] = 1 end Me:setValue("level",packet[1]) end) PackageHandlers.registerClientHandler("ExpSendClient", function(player, packet) if (packet[1] == "") Then print("packet[1] is empty") packet[1] = 0 end Me:setValue("exp",packet[1]) end)