dop2000's Recent Forum Activity

  • 1. If the event is triggered and the bullet is destroyed, then the last 3 actions should definitely work with the current instance of the Ball. There may be some other event or behavior which doesn't allow to change object size. As an experiment try changing Ball opacity and increase the wait duration.

    2. When the ball is destroyed, you can copy its health into a local variable. Then spawn two new balls and assign them half of that health from the local variable. I don't see any issues here, I would've done it the same way.

  • Does this bug happen when you preview the game in the editor? When you restart the preview, is the data from LS loaded correctly?

  • The principle is the same - you can use an instance variable TargetFrame on the blade sprite. When it arrives, increment the variable, pick the invisible box with that frame and move to it. If the variable=4, reset it back to 0 to make a loop.

    However, you have multiple groups of blades+boxes in your video, this makes it a bit more difficult, because you also need some way to pick the box from the same group. I would probably use hierarchies - create another invisible sprite, say Room. Add blades and boxes to the Room as children. When a blade arrives, pick its parent room, and then pick the room's child boxes.

    I suggest you try to make it working with one group of blades+boxes first.

  • 1. Use "On collision" event instead of "Is overlapping".

    "Is overlapping" will continue to fire every tick, about 60 times per second, while the objects are overlapping. "On Collision" is a trigger, it will happen only once at the moment two objects touch. I'm guessing this is what you want?

    And remove "Trigger once"! This condition can cause a lot of damage when not used correctly, I suggest forgetting about it until you have a good understanding of how events in Construct work. And never use "trigger once" with objects that have multiple instances.

    2. Use instance variable on the Ball sprite. Then each ball instance will have its own health.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can save the current target's frame in a variable. When the object has arrived, increase the variable by 1, pick the box instance with animation frame=variable and move to it.

    Object On Arrived : Add 1 to frameVar
    
    .. Box compare animation frame = frameVar : Object move to Box
    
  • Right-click on function name -> "Replace with built-in function"

  • There's likely a mistake in your JSON string (like a missing bracket), that's why it can't be parsed. If you press F12 and open browser console you will see an error message about it.

    I suggest you use any of the online JSON validator tools to fix the syntax.

  • I doubt the data is erased. Most likely it's get overwritten when you re-open the app. You need to post your project file or a screenshot of your events where you read and write to Local storage.

  • AJAX is a standard object in C3. You can add it the same way you add other objects to your project, for example double-click on an empty area in layout view.

    If you don't see AJAX in the list of objects, either you've already added it earlier (and possibly renamed). Or perhaps you have "Simplified interface" enabled in Construct settings, in this case disable this checkbox.

  • It still feels like the same problem to me. I'll try to monitor the memory usage more closely, perhaps it is increased with time, but not very dramatically.

    The editor is much more likely to lag when the project has been open for several hours. But I've seen it happening just 10 minutes after opening.

  • In my case, when I open my project in Chrome, it uses around 3.5GB of memory, and this number doesn't change much with time.

    I tried forcing Chrome to use the dedicated GPU, it made no difference. And as I mentioned, the editor still lags on my gaming PC with a powerful graphics card.

    I also tried Edge browser, closing all search windows, different editor themes, disabling hardware acceleration in Chrome, disabling spell check, disabling auto-fill for addresses, disabling Windows Defender and many other things. Nothing helps.

    Same Large project that's been open for hours (Total blocking time: ~4.3 seconds):

    I posted very similar results in this comment.

  • 1StepCloser Thanks! For me this also happens only in one large project.

    Is the issue intermittent in your case? One minute the editor is very slow, and the next five minutes it may be running perfectly fine?

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-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
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies