TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How do I access the script public methods inside a GLOBAL custom block.
Pages:
1
How do I access the script public methods inside a GLOBAL custom block.
blackbishop89
May 09, 2011, 03:24:08 pm
Two of them don't work and I'm assuming the rest don't. The properties work find. just not the methods, how do I define them?
Alexin
Posts: 3127
May 09, 2011, 03:35:10 pm
Via a Script instance, passed as a parameter, for example.
"Find the fun"
alexin@stencyl.com
Alexin
Posts: 3127
May 11, 2011, 07:46:23 am
Do you really need a global block?
I think Justin and Hoamaru had a workaround to create static functions in DM. Perhaps it would work for you.
The problem here is that I don't know the context and explaining you why and how to do it is too involved. You'd have to learn the basics of classes, etc.
"Find the fun"
alexin@stencyl.com
Pages:
1