Accessing another clips variable

I was making some health when I couldn’t access another clips variable. Can someone help me?

anotherClip.var should work, right?

Does the .var part mean the name of the variable?

1 Like

using absolute path is usually easyer
project.targetClip.targetVariable

or you can get to your variable using relative path
this.parentClip.otherTargetClip.targetVariable

you have to customize bold parts with your clip and variable names

Hey @tazer_900,

You’ll need to store the variables in the other clip as a property of the clip. You can do this by writing your variable like so:

this.variable = value;

Then you access that variable from other objects in the same frame like so.

clipName.variable

2 Likes

oh ok! Thanks that helped!

1 Like