Jump to content

this.level_(this.id) >this id="player" > this level_player


Recommended Posts


i double each time my parameters like this :

this.level_player = something

this.level_opponent = something

is it possible to do something like this :

this.id = "player"
this.level_this.id = something

to have



thanks for your brillant answer :)

Link to comment
Share on other sites

I'm not sure what you're asking? But I think you want something that looks like this: "this.level_this[id] = something" instead? That would be like assigning to the property named "player" like this: "this.level_this.player = something". Is that what you're looking for?

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...