rhg1968's Forum Posts

  • It looks like your mouse event is a sub event of the text is 16 condition check.This means the mouse click will only trigger when the text is equal to 16 and I'm not sure if that was your intention.

  • Ashley

    Thanks. I know you just implemented the basics of scripting so far, but what you have is amazing. Keep up the great work it is very much appreciated.

  • I'm sure there will more functions added to the official API, but one way, if anyone is interested, is to use functions to pass information from the event sheet to the script and vice versa.

    You can use globalThis.c3_callFunction("FunctionName", []); //The array is the function parameters.

    You can also get a hold of the full addon sdk, but I think that defeats the purpose of a nice clean API for accessing everything and can lead to issues if the inner workings change.

    I'm sure this functionality and a lot more will be added to the official API, but in the meantime you play around with using functions.

    Tagged:

  • Android exports on my galaxy s8+ didn't work, always a black screen, until chrome on my android device updated to 74. Once that happened it worked perfectly on r148 and r149.

    I think you will see the black screen on a device that chrome hasn't been upgraded. What version of chrome are you running on the actual device ?

  • Just a quick question. I have an a plugin I created a while ago for the c3 runtime and it used variadic parameters. I see the warning in the console.

    My question is, you said this wasn't supported and that's the issue with using features in the SDK not documented. The only reason I used it in my plugin is because it's mentioned in the SDK manual as isVariadicParameters.

    So I wanted to make sure that this is indeed the functionality that is being depreciated.

  • If you indicate that the function has a return value, then it can only be called as an expression and not as an action. Only functions without any return parameter can be used as an action

  • If I remove the one custom font I have in my project, the apk starts up everytime without issue.

    If I put the font back in, every once in awhile itll start up but most of the time it gets stuck on the c3 loader screen.

  • I have had this issue for awhile now. I have submitted a bug on it, but it got marked that they couldn't reproduce it. To me it seems to be around adding custom fonts, *.woff or *.woff2.

    It will work sometimes when exported to an apk, but most of the time it gets stuck on the C3 loading screen.

    If I remove the fonts, it works every time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you. Just added it.

    github.com/Scirra/Construct-3-bugs/issues/2691

  • Before I enter a bug, I wanted to see if anyone else has had this issue.

    In my game I use a web font, I have both woff and woff2 files. It runs fine on my desktop browser and in my mobile browser in galaxy s8+

    However when I export it as an apk to run as an app on my phone it just hangs on the construct 3 default loading image.

    If I remove the fonts from the project, then export it again, it doesnt hang and works fine, well except the font is not what I want.

    I just wanted to see if maybe I'm doing something wrong before filing a bug.

    Tagged:

  • That's the absolute value. So whatever is the result of the subtraction is, positive or negative, it will return the positive of the result.

    so abs(10-12) = 2

    abs(12-10) = 2

  • Ashley

    Good point. Thanks

  • Ashley

    My plugin caches some data that allows it to easily maintain information between application runs. The default is for it to be off, but it can be switched on. I saw when I looked at the code that you were using localforage, but I didn't know if I could count on it being there if I wasn't actually using the locaol storage plugin. So I wrote my own access layer to indexdb using promises, which my plugin currently uses.

    Just thought it was an idea, but I can understand your points.

  • Ashley

    I would like to put out there that maybe adding an interface to the local storage plugin in the sdk would be useful. In one of my plugins I currently rolled my own interface to IndexDB, which I know you use for local storage. I think it would simply plugin in development if we are able to use your well used and tested interface to local storage instead of handling it ourselves. Just a thought.

    I also wanted to add that I really appreciate all the work you and your team does and I totally enjoy developing my game and plugins for construct 3.

  • Your project has to be set for the c3 runtime. Also make sure you're using the latest release