Hi, Its not possible to teleport with physics on..
player gets stuck if there is wall between two points.. even if i use command
ccbSetSceneNodePositionWithoutCollision
Hi, coppercube writes file .. client program sends it to server.. server sends ot to client programs.. client writes it to a file .. coppercube read it from file- then in script it parses the string: string looks like - command_name, value,value ..
i dont currently have second computer so its not possible for me to test and make fixes properly.
Player positions are sent out with interval..minimal event action sends commamd only if action is made and should be update something..for example remove node or create one or set visible or invisible something.
Commamds to parse you can add in script ..
In my example i dont have many of them but can be added as many as needed.
Thanks, this healthbar is meant for being used on AI players to display health (game actor with health) but with some simple edits it can be used anywhere.. but there are also script made
https://hadoken-records.itch.io/coppercube-power-bars
Its not free but worth its price and its probably exactly what you need.
You need to setup command for this.. its actually simple. if object picked up you send out command so object will set invisible for others -object can be idenified by its name.. so command can be "oVisible,nodename,false"
Script will parse this line as 3 parameters..
command:oVisible
par1:nodename
par2:value
setScenenodeProperty(getNodebyname(par1) ,"Visible",par2);
I have example for this actually .. i will upload example with many commands soon.
EDIT: Here is example from documentation:https://www.freebasic.net/wiki/KeyPgDdfbargv
I made simple example for this.. https://drive.google.com/file/d/1AJO_4rU9BpybIF6Bum9BQ8pvV0TOBCuP/view?usp=shari...
Because it uses files to communicate with coppercube game it is more just for testing and for fun ( constant file read/write probably not good for hard drive either so this method is not good) , for real multiplayer developer must code networking part in c++ with Coppercube Studio version.
client and server code can be modified so it will be healthy to use for turn based or rts games.