A feature I’d like to see in Hopscotch is:
Object variables that are only visible in a specific custom rule.
I’d use it for this type of project:
Any project where I have an object variable that only needs to be used in a single custom rule.
Here are some examples of Hopscotch code that could be improved if we had this:
There would be no difference to regular object variables except for how the code is organized.
10 Likes
is this similar to local variables? or am I interpreting this incorrectly?
4 Likes
Yes, like local variables and object variables combined. It would behave in the player like object variables, but be usable in the editor like local variables. So you could get the original object’s value of some local variable, or self’s value, or some other object with the custom rule’s value.
6 Likes
oh ok, that makes more sence! this would be cool to have in hopscotch!
3 Likes
i agree this would be cool but a local variable that accesses other clones scopes doesnt really sound local for me… at least thats my opinion on it lol
3 Likes