rhg1968's Recent Forum Activity

  • No not all. Sorry if it sounded like that. Its for the plug in developer. It has to do with the project setting in the advanced part. If you select classic, which then doesn't use Javascript imports, the error goes away and it works.

    I am using the new import way in my project so I can't switch back to classic. I am hoping the developer can take a look and provide an update.

  • Adding to the post before about the game not loading, it appears to be related to having modules selected for the project. If you select classic then it works, but otherwise you get

    Uncaught TypeError: Cannot read property 'Plugins' of undefined

    at c3runtime.js:2563

    c3runtime.js:2322 Uncaught (in promise) TypeError: self.C3_GetObjectRefTable is not a function

    at C3Runtime._LoadDataJson (c3runtime.js:2322)

    at C3Runtime.Init (c3runtime.js:2316)

    at async RuntimeInterface._InitDOM (main.js:39)

    at async RuntimeInterface._Init (main.js:27)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I appreciate the response but I'm not talking about the ternary operator.

    I'm talking about

    let test = obj?.prop1?.prop2;

    Allowing deep property checks automatically returning undefined if anything in the chain is undefined instead of checking each item in an if statement

  • Does the scripting feature in events support optional chaining ?

    It gives an error when attempting to use the ?. operator.

    Thanks

  • Would have to see more of the actual code to help. I set text like that in script without any issues

  • You have two issues.

    1) You need to pass the runtime into your function jumpPowerBarRun. It should be jumpPowerBarRun(runtime)

    2) using runtime.objects.JumpPowerBar. That doesn't return an object for you to work with. It gives you access to functions to get instances that exist in your layout

    You would have to do something like runtime.objects.JumpPowerBar.getAllInstances() or runtime.objects.JumpPowerBar.getFirstInstance(). When you get all you will have to loop through them, but get first returns the object so you could then do runtime.objects.JumpPowerBar.getFirstInstance().width.

    There are other methods that you can use

    https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/object-interfaces/iobjectclass

  • Thank you for taking care of that so quickly.

  • First off love the plugins, I purchased them and they are really awesome.

    One thing I did notice is that if I tried advanced minification with the sample project you included it fails. Did you have any plans to make so that the plugins can be minified without any issues ?

    Thanks.

  • You create the instance then assign the width and height to it.

    const obj = runtime.objects.Player.createInstance(layerNameOrIndex, x, y);

    obj.width = 10;

    obj.height = 10;

    https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/object-interfaces/iworldinstance

  • You should be using runtime. callFunction("", x, y).

    This will get minimized properly.

    Normally to handle something that is accessing something that isn't minimized you would have to change something like this: funtion.doSomething() to function["doSomething"]()

  • It works now, Thank You !!!!!

  • I have a personal license, but since C3 has been made open for the weekend it shows at the top free edition and my account name. If I try to load my project it says it exceeds the free edition.

    I can log out and log back in, but it still shows both my account name and the free edition tag and I can't work with my project. This is on version R195.

rhg1968's avatar

rhg1968

Early Adopter

Member since 6 Jun, 2014

Twitter
rhg1968 has 9 followers

Trophy Case

  • 12-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies

Blogs