title: Accessing custom instance variable from other instance object
body: <p>I basically have this:</p>
  
  <p>Obj1 Create event:</p>
  
  <pre><code>health_total = 50;
  health_current = health_total;
  health_text = instance_create(x,y-10,obj_health); // Object to show health of an instance object
  
  health_text.origin = self; // Assign an 'origin' variable so I can access it later?
  </code></pre>
  
  <p>obj_health Draw event:</p>
  
  <pre><code>show_debug_message(origin.x); // &lt;-- This works just great!
  show_debug_message(origin.health_current); // &lt;-- This throws error :(
  </code></pre>
  
  <p>I assume that the variable might be local but then, how do I make it public? GML is a bit new to me, though, I'm not new to programming. This makes my mind hurt.</p>