variables with user data
please add variables that will work on microstudio-
user.name
this will be a variable storing the user name
user.description
similar to user.name
but with a description of the user,
I know all this can be done through js but it will be easier if you add it to microscript
is the construct "object" not enough?
or am I understanding something wrong?
init = function()
pl = object // player
size = 10
x = 0
y = 0
move = 20
direction = 0
wait_ticks_go = 0
end
print('init: player.move: '+pl.move)
end
print('after init: pl.move: '+pl.move)
pl.move = 40 // ! Warning: pl is not defined
global.pl.move = 60
print('global: pl.move: '+pl.move) // as global: OK
I'm talking about variables that contain user data, name, description, etc
are you talking about storage.set? its in the documentation under API reference at the bottom. it allows you to save values and strings for people
I am writing through a translator, maybe this is the problem, I am talking about changes with user names
I think what this user wants is the possibility to access the name of the user using the program. For example, if I were using it, it would return VoiderYT