Creates bullets by rules
Good day JJ_Weapon does not support advanced minification. Can you fix it?
Can you give me some steps to reproduce the issue?
Hi people, just made a small update in the behavior. It fixes the window is not defined error.
Thank you for the update. I am very happy that you support the plugin, thank you. We are waiting for new features.
I can't get it to work, I get the following error
Uncaught (in promise) ReferenceError: window is not defined
at new jj_WeaponInstance (c8601d8d-2afd-4b36-8f7d-b160d165174b:78)
at Function.C3.New (jsutil.js:1)
at C3.BehaviorInstance._CreateSdkInstance (behaviorInstance.js:1)
at C3.Instance._CreateSdkInstance (instance.js:1)
at C3.Runtime.CreateInstanceFromData (runtime.js:1)
at C3.Layer.CreateInitialInstances (layer.js:1)
at C3.Layout._CreateInitialInstances (layout.js:1)
at C3.Layout._StartRunning (layout.js:1)
at C3.Runtime.Start (runtime.js:1)
at async C3.Runtime.Init (runtime.js:1)
Sorry for the late response, construct is not notifying me about comments... and it's been a busy week for me also.
I can see where's the error, I'm relying on the global **window** object to listen to keyboard events, it should work perfectly on most browsers, but I guess that's not guaranteed.
I haven't been able to find a recommended way to handle input in C3 (C2 relies on jQuery). I need some help that, if anyone knows of an open-source addon that uses keyboard to take as an example, I'd thank you.
No longer works in the latest version of Construct 3.
[jj_Weapon] (JeyDotC_jj_Weapon) by JeyDotC uses the legacy SDK v1 which is deprecated. A future update to Construct will remove support for SDK v1 addons. Check if an update using SDK v2 is available for this behavior, or contact the behavior developer for support.]
Hello,
I can't set the weapon image point from an event sheet. how to do it please?
How can I add to ammo stock when I pick up ammo?
Hi, can not add this addon to Construct 3. Why ?
Ok, thanks to the clues provided by ibiz, I managed to fix the advanced minification issue.
Hi, here's another small update, it just changes the addon format to the latest version (as stated in this post: construct.net/en/forum/construct-3/plugin-sdk-10/third-party-addon-changes-156802).
Sadly I was unable to add GetDebuggerProperties implementation since, for some F**ing reason it creates a new table in the debugger EVERY FRAME instead of updating the existing one, no idea why. So, for now, no debugger support :(