私は基本的にこれを持っています:
Obj1 作成イベント:
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?
obj_health 描画イベント:
show_debug_message(origin.x); // <-- This works just great!
show_debug_message(origin.health_current); // <-- This throws error :(
変数はローカルである可能性があると思いますが、どうすれば公開できますか? GML は私にとって少し新しいものですが、プログラミングは初めてではありません。これは私の心を傷つけます。