Can't connect two classes created in freeform mode


  • Posts: 78
Hi, I've created two classes in freeform mode: one (lets call class A) has some static functions and the other (class B) uses these function for the logic of my game. The problem I have is that when I call, in B, a function created in A, Stencyl can't find this function. The classes are in the same package and I've also tried to import A in B but I have the same result. Anyone can help me? Thank you.


  • Posts: 1833
I'm not quite sure if I know what you mean. Are you talking about getting values from different actors?

Take a look at the blocks under  BEHAVIOURS >  ATTRIBUTES
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.


  • Posts: 1771
It would be better if you could post some code samples. Are you calling your function (from B) like this? A.functionName() ?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.


  • Posts: 78
I've solved the problem. I've simply deleted the B file and made another one with the same content, I don't know why it didn't work before but now it works without problems