Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
@Niko In webgl, from my extension I can pass reference to the extension itself as follows In extension I do
Then in action (javascript action) I can get the reference by
Now in my action, I can use "r" to access various extension properties and methods Same doesn't work in windows. Is there a way to do this in windows? |
||||
|
var ref; |
||||
|
@okeoke Are you saying set a global variable and access that from Action javascript? Anyways, I tried that but it doesn't work for windows or webgl. |
||||
|
Full behavior code: // The following embedded xml is for the editor and describes how the behavior can be edited: Script code which runs every 500 ms: print(ref.khuy); Ccb demo:https://drive.google.com/file/d/... |
||||
|
@okeoke You are right, it works, Thanks for the demo, that helped. I must have mistyped something previously when I was trying it myself Now , this does not work for webgl though. For webgl it seems you would have attach the global variable to "window". So the proper solution would be
|
||||
|
make a list of windows versus webgl games caseoh has played and prepare yourself for a reason why you shouldn't bother targeting webgl... don't overwork yourself, m8... |
||||
|
also listen to this song because I am feeling spicy: https://www.youtube.com/watch?v=... p.s. sadly ambiera doesn't have a pirate emoji... |
||||
|
let me say one last thing and I will leave you guys alone, niven on itch gets more playtime than all of us (jic, robbo, etc) here and he can't even make a proper interaction system. acclimate yourself to the times, friend. |
|