View Single Post
  #5  
Old 01-06-2011, 11:51 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Take your pick:

PHP Code:
// Makevar
temp.obj makevar("Ron_TD_EnemyImage" i);
temp.obj.bleh();

// Directly
temp.obj = (@"Ron_TD_EnemyImage" i);
temp.obj.bleh();

// Without using a variable
(@"Ron_TD_EnemyImage" i).bleh(); 
When you use a variable you can then use with to change variables directly as well. I.e:

PHP Code:
temp.obj = (@"Ron_TD_EnemyImage" i);
with (temp.obj) {  // with ((@"Ron_TD_EnemyImage" @ i)) { // should work as well.
  
this.+= 10;
  
this.+= 10;

__________________
Quote:
Reply With Quote