brin's Forum Posts

  • can you post your project settings? if you click on the name of the game in the hierarchy they should be visible.

  • Thanks for the responses!

    The issue was not with browsers, it was with my code.

    I was trying to load LocalStorage.Key instead of LocalStorage.ItemValue

    It works now!

  • Hi thanks for the answers,

    it is definitely not Firefox's fault. I run into the same issue on microsoft edge.

    If you could check out the console output yourselves here is the link to the game: newgrounds.com/portal/view/786047

    And here is the .c3p file of the game: mega.nz/file/JFgxRQ4Y

    Here is the console log:

    [Construct 3] Error parsing JSON: SyntaxError: Unexpected token d in JSON at position 0
     at JSON.parse (<anonymous>)
     at DictionaryInstance.JSONLoad (c3runtime.js:2962)
     at Action._RunObject_ParamsDontVary (c3runtime.js:1827)
     at EventBlock._RunActions_Fast (c3runtime.js:1694)
     at EventBlock._RunAndBlock (c3runtime.js:1692)
     at EventBlock.Run (c3runtime.js:1689)
     at EventSheet._ExecuteTrigger (c3runtime.js:1662)
     at EventSheet._TriggerForClass (c3runtime.js:1656)
     at EventSheet._Trigger (c3runtime.js:1655)
     at EventSheetManager._Trigger (c3runtime.js:1626)
    JSONLoad @ c3runtime.js:2962
    _RunObject_ParamsDontVary @ c3runtime.js:1827
    _RunActions_Fast @ c3runtime.js:1694
    _RunAndBlock @ c3runtime.js:1692
    Run @ c3runtime.js:1689
    _ExecuteTrigger @ c3runtime.js:1662
    _TriggerForClass @ c3runtime.js:1656
    _Trigger @ c3runtime.js:1655
    _Trigger @ c3runtime.js:1626
    Trigger @ c3runtime.js:2383
    TriggerAsync @ c3runtime.js:2384
    TriggerAsync @ c3runtime.js:1930
    (anonymous) @ c3runtime.js:2989
    _MaybeStartNext @ c3runtime.js:572
    (anonymous) @ c3runtime.js:571
    Add @ c3runtime.js:571
    ScheduleTriggers @ c3runtime.js:2386
    ScheduleTriggers @ c3runtime.js:1930
    CheckItemExists @ c3runtime.js:2989
    async function (async)
    CheckItemExists @ c3runtime.js:2988
    _RunActions_ReturnValue @ c3runtime.js:1695
    _RunAndBlock @ c3runtime.js:1692
    Run @ c3runtime.js:1689
    _ExecuteTrigger @ c3runtime.js:1662
    _TriggerForClass @ c3runtime.js:1656
    _Trigger @ c3runtime.js:1655
    _Trigger @ c3runtime.js:1626
    Trigger @ c3runtime.js:2383
    TriggerAsync @ c3runtime.js:2384
    _StartRunning @ c3runtime.js:1150
    async function (async)
    _StartRunning @ c3runtime.js:1149
    _DoChangeLayout @ c3runtime.js:2380
    async function (async)
    _DoChangeLayout @ c3runtime.js:2379
    _MaybeChangeLayout @ c3runtime.js:2377
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
    requestAnimationFrame (async)
    RequestPostAnimationFrame @ c3runtime.js:355
    _RequestAnimationFrame @ c3runtime.js:2363
    Tick @ c3runtime.js:2370
    normal @ c3runtime.js:2308
    (anonymous) @ c3runtime.js:355
    async function (async)
    (anonymous) @ c3runtime.js:355
  • Hi,

    at one point in my development my local storage stopped working. I didn't really change anything about it so I'm not sure what is causing this but the console error that I'm getting is this:

    Unable to use local storage, reverting to in-memory store: DOMException: A mutation operation was attempted on a database that did not allow mutations. A mutation operation was attempted on a database that did not allow mutations. 01997124-d4af-418b-b711-bcbc7ef7b3aa:3:253
     _MaybeSwitchToMemoryFallback blob:https://preview.construct.net/01997124-d4af-418b-b711-bcbc7ef7b3aa:3
     getItem blob:https://preview.construct.net/01997124-d4af-418b-b711-bcbc7ef7b3aa:4
     CheckItemExists blob:https://preview.construct.net/2ff66fae-276a-4203-bb9c-b73659fb5761:5
     _RunActions_ReturnValue blob:https://preview.construct.net/a75ee092-f4bf-45f4-b5fd-9c4ab1fc25c3:26
     _RunAndBlock blob:https://preview.construct.net/a75ee092-f4bf-45f4-b5fd-9c4ab1fc25c3:23
     Run blob:https://preview.construct.net/a75ee092-f4bf-45f4-b5fd-9c4ab1fc25c3:20
     _ExecuteTrigger blob:https://preview.construct.net/26c61692-7c56-4d71-a0cb-96939271dcf2:18
     _TriggerForClass blob:https://preview.construct.net/26c61692-7c56-4d71-a0cb-96939271dcf2:12
     _Trigger blob:https://preview.construct.net/26c61692-7c56-4d71-a0cb-96939271dcf2:11
     _Trigger blob:https://preview.construct.net/0b227ecc-4b8a-45ea-803d-36c7156a0ef5:13
     Trigger blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:81
     TriggerAsync blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:82
     _StartRunning blob:https://preview.construct.net/8b0b727a-b854-4348-b3f7-f7afb5063f34:15
     _DoChangeLayout blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:78
     _MaybeChangeLayout blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:75
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     RequestPostAnimationFrame blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     _RequestAnimationFrame blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:61
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     RequestPostAnimationFrame blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     _RequestAnimationFrame blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:61
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     RequestPostAnimationFrame blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     _RequestAnimationFrame blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:61
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     RequestPostAnimationFrame blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     _RequestAnimationFrame blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:61
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     RequestPostAnimationFrame blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18
     _RequestAnimationFrame blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:61
     Tick blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:68
     normal blob:https://preview.construct.net/2a98e0ee-c496-4714-98d0-c40caa5b8e61:6
     id blob:https://preview.construct.net/bb598e4b-22ea-45d0-bd8a-db50bc03b857:18

    At the start of the game I'm doing this:

    the only other time I touch local storage is here (this does not get called when the error is thrown into the console, it gets thrown at the start of the game)

    and here are the project settings I'm using:

  • Thank Ashley, I think the addon dev might be gone but I'll give it a shot and try to get a friend to fix it if nothing else.

  • Hey,

    I'm trying to use the construct 3 plugin for newgrounds but adding the authorization plugin crashes my game on boot. This is regarldess if I use the worker mode or not.

    Here is the console dump:

    c39a0707-c271-426e-95dd-9c858ad2c67c:1 Uncaught ReferenceError: Newgrounds is not defined at c39a0707-c271-426e-95dd-9c858ad2c67c:1 sw.js:562 [SW-Preview] Up to date c8743509-b5b6-4770-aa03-24caa9b341c3:15 Uncaught (in promise) TypeError: Cannot read property 'io' of undefined at new SingleGlobalInstance (c8743509-b5b6-4770-aa03-24caa9b341c3:15) at Function.New (jsutil.js:9) at Instance._CreateSdkInstance (instance.js:7) at ObjectClass._CreateSingleGlobalInstance (objectClass.js:12) at new ObjectClass (objectClass.js:7) at Function.New (jsutil.js:9) at Function.Create (objectClass.js:7) at C3Runtime._LoadDataJson (runtime.js:27) at C3Runtime.Init (runtime.js:20) at async RuntimeInterface._InitDOM (domSide.js:23)

  • Generally speaking you can use the lerp, qarp, or cubic expressions (or some combination) with your ease formula to get the value at any point within an ease. Easing formulas can be found online easings.net

    Note that you'll want one for each the x and y axes.

    For example, for a quadratic ease in/out

    lerp(startpositiony,endpositiony,x<0.5?2*x^2:1-((-2*x+2)^2/2))

    Would give you the y value between start and end positions when inputting an x value between 0-1.

    Hi! Yeah I know that I can use easaing functions and they are functional (hehe) but I find it a lot easier to tweak things if I can make my own curves so I was wondering if it is possible to do it with animation curves that we create.

  • Hello there!

    Since we can define eases/animation curves I was wondering if it is possible to "evaluate" a number off that animation curve.

    So I would want to have a function where I would give the code a number on the scale of 0-1 (the x-axis of the curve) and would end up getting the y-position of the curve at that x position.

    I know that this is possible in unity and for reference I am linking their documentation for evaluating a curve here: docs.unity3d.com/ScriptReference/AnimationCurve.Evaluate.html

    Is this maybe possible using some JS code if it is not possible to do it with event sheets?

    Thanks in advance!

  • Hey oosyrag, disabling the worker worked! Thanks :)

  • bumping, still need help. Will post if I find a way to fix this

  • Hi!

    Sorry fi this is the wrong category, I'm looking for someone who has expereince using the newgrounds plugins for construct 3. When I throw them and give them my app id + AES key I get an error in the console that spits this out:

    Uncaught (in promise) ReferenceError: window is not defined
     at new SingleGlobalInstance (de03341b-1d7c-4a40-bf1a-b4de7b71a834:15)
     at Function.New (jsutil.js:9)
     at Instance._CreateSdkInstance (instance.js:7)
     at ObjectClass._CreateSingleGlobalInstance (objectClass.js:12)
     at new ObjectClass (objectClass.js:7)
     at Function.New (jsutil.js:9)
     at Function.Create (objectClass.js:7)
     at C3Runtime._LoadDataJson (runtime.js:28)
     at C3Runtime.Init (runtime.js:21)
     at async InitRuntime (fddf06ef-bb92-4c24-af32-0ccb9fa8348d:4)
    

    any clues what to do?

  • You need to use a container. Add the enemy sprite into a container on your controller object, then when you create/spawn a controller, the enemy sprite will be automatically created at the same location. After the create action, in the same event, you can add the enemy sprite as a child of the controller.

    Then for the collision event you need: Controller on collision with XYZ - set Enemy Sprite animation to "collision animation".

    Thanks a lot! That makes sense, I knew something helped with the automatic detection of things like this and I assumed it was children.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I was under the impression that adding something to a child object would make it be favored in the selection process of an object, however, this does not seem to be the case for my situation so I am looking for a way to dynamically select an object that is a child of a different object.

    Here is the pseudo code that I have:

    1. I create an enemy controller

    2. When said enemy controller gets created I spawn a sprite for it

    3. Sprite gets added as a child

    4. When the enemy controller collides with a wall I want to run an animation on the enemy

    Simply running the animation on "enemyAnimation" creates a situation where it runs on all instances of enemy animation. So how can I tell construct that I want that to happen only on the child object?

  • Is it possible to specify what folder I want the google drive backup to save to? Right now it just saves to root and that's a bit too messy for my taste.

  • You can try leaving yourself a bit of a buffer. Set a timer to run on start of layout, and sync everything else to when the timer completes after a few seconds.

    How could I know how much time is needed for each load to happen? I mean I can't just eyeball this since all machines are different right?

    put your music files in the sound folder. and set your project to preload sounds

    This would mean that it changes the load time for the game right?