Gold Skull Tutoriais's Recent Forum Activity

  • Thank you, Ashley. I'll send the details to you in the bug report.

  • You're right, the save/load system caused several issues in my mobile game, especially when I modified parts or objects in the layout. Loading would generate various bugs. The alternative I found was to create a system that saves the position and state of all important objects and recreates them in their positions based on the data stored in the dictionary.

    In my game, what I store using AsJSON is for the various object variables. In this template, I didn’t add variables to the Turret object because I didn’t see the need; it was just to test if the action "set from JSON" was causing the delay in the turrets firing.

    So far, the only thing I've really discovered is that this action sort of disables the turret behavior of the object, almost as if it takes some time to load.

    I believe you're right, and maybe only Ashley or another Construct 3 dev knows exactly what’s happening.

  • I’m having a recent issue involving turret-behavior objects.

    In my game, there’s a saving system that saves the position and the values of their internal variables into a key in a dictionary. During the loading of these objects, the system creates the objects and loads the state via JSON.

    After saving, closing the game, and opening it again, the turrets are loaded but do not work. I’ve tried making them target again, but it didn’t work.

    I realized the problem lies in the action: set from JSON.

    How did I find this out? I created a template to demonstrate how the problem occurs.

    In this template, you can add turrets by simply clicking on the orange area. Once created, the turrets will automatically aim and shoot at the red enemy.

    You can save the position of all turrets by clicking save, and load them after closing the game and reopening it. The game will automatically load the turrets if there is a save.

    The issue I mentioned above also happens in this template. After saving, closing the game, and reopening it, the turrets are loaded and positioned correctly, but they don’t shoot. However, after a few seconds, they start functioning normally, which doesn’t happen in my game.

    Does anyone know what might be happening? Could the 'set from JSON' action take too long to load, and during this loading, it deactivates the turret behavior?

    template:

    drive.google.com/file/d/1YZw0eo2uilxNvL7Mvh8Ikv3w9NqxuR-_/view

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

Gold Skull Tutoriais's avatar

Gold Skull Tutoriais

Member since 26 Feb, 2013

Twitter
Gold Skull Tutoriais has 1,600 followers

Connect with Gold Skull Tutoriais

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x5
    Popular Game One of your games has over 1,000 players
  • x3
    Famous Game One of your games has over 10,000 players
  • x3
    Viral Game One of your games has over 100,000 players
  • 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
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies