i have a game and im trying now to create unique ID for every player spawned and save its position ,
but the host can only receive 1 set of x and y co-ordinates for that object and i cat find a way to make a new object each time or change object name
You are working on a network game on native platform ?
To create unique ID, using object variable âIDâ, just create a variable object so called, and let the value to 0 by default.
Then create an object counter global variable, for exemple âplayerCounterâ and set it to 0 to.
In âscene startupâ condition, youâll create your player object instance,
in a âfor each object âplayerââ, action : player.Variable(ID) = GlobalVariable(playerCounter)+1 then
then increment the counter : GlobalVariable(playerCounter) = player.Variable(ID)
This way all object âplayerâ will have a unique âIDâ value in variables, that you can use for all other condition.
Hope this will help, iâm not sure about the purpose if you are using network extension, idk how does it work, and probably client game canât share âlocalâ variableâŚ
This does help and i have a unique id generator now for objects,
the only issue is the TXT part in certain commands, is there any way to change them to a variable
because i want to be able to send objects information say X and Y but that means everybody will recieve the same information and not there individual charicter X and Y
that txt box / string is there any way i can change what goes in this box due to the fact it reads what you add to this section as a string(text) and does not look for it.
example : in that box if i wanted it to fuse a variable i cant