Jump to content

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


espace
 Share

Recommended Posts

hi,

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

this.level_player=something 

?

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

 Share

  • Recently Browsing   0 members

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