Posts by Mr. pro • 1 point
1 post
-
0
votes1
answer29
viewsQ: Reading variables from an object that was created in another
I’m creating an RPG and I found a problem: I can’t create monsters with levels. My code is like this: var xp = 0; function MonsterCriado(entidade){ Lvl = Math.floor(Math.random() * (11 - 1) + 1);…