dop2000's Recent Forum Activity

  • So when you set to wait 4 seconds before deleting the sprite - was the sprite visible for 4 second? Then disappeared, but there was nothing on canvas?

    Can you try drawing something on the canvas before pasting? For example fill it with red color, draw a blue circle. Then paste the sprite, wait a few seconds, move the sprite 100px to the side.

    This way you would at least know if the pasting action doesn't work, or if the issue is with something else. Perhaps the canvas is not created, or it's invisible or it's in a different place, or the size is wrong etc.

    Oh, and also add "Wait 0" before pasting, maybe this will help.

  • With MoveTo you can do something like this:

    Repeat 10 times
     Sprite MoveTo position (startX, startY+loopindex*100) (add waypoint)
     Sprite MoveTo position (startX+50, startY+loopindex*100+50) (add waypoint)
    

    In your screenshot you left tween tags empty "". Just give them descriptive tags like "move_left", "new_cycle" etc. Then you will be able to track the progress of every tween using events like "Tween is playing", "Tween finished".

  • You can test in an old C3 version - if it still works there and doesn't work in the latest version, then it may be a bug, and you can report it.

    I know pasting on Canvas was working in my Android game, but I haven't updated it in almost two years.

    • Post link icon

    Thanks. In my case the laptop is always plugged in. And the power management profile is always set to "High performance".

    • Post link icon

    what if the temperature of your integrated graphics is getting too high and throttling itself, but other apps on your computer are using the dedicated Nvidia GPU which means other apps wouldn't freeze at all?

    dGPU on this laptop is only enabled when gaming. All other apps are using integrated graphics. There is an icon in windows tray that shows when a program is using dGPU, so I'm sure about this.

    Yeah, I also tried to force Chrome to use dGPU in the past, but didn't have any luck.

    The temps are low when I'm working in C3, I've checked them many times. But to test your theory, next time the editor starts to lag I'll put a large ice pack under the laptop, see if it helps :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    XHXIAIEIN Nvidia GPU is disabled when I'm working in Construct. It uses the integrated Radeon graphics.

    Regarding some problem with the power - I guess this may be possible, but it would probably affect all apps. Like I said, other apps are not affected by these freezes.

    1StepCloser Thanks for posting that bug report!

    I haven't tried the latest beta yet. I expect it will probably make the freezes shorter, but won't fix them completely, because something else (not autocomplete) is causing these lags in my case.

    Yesterday my Chrome was lagging almost non-stop for about half an hour. Even opening the project was taking 3-5 minutes instead of the usual 10-20 seconds. And today there were barely any lags. This randomness is driving me crazy!

    Asmodean I tried your suggestions. Chrome with disabled hardware acceleration - still freezes. Edge - same thing. So it must be something specific to the Chromium engine.

    Firefox - no freezes, but it's just generally quite slow. My game runs at 100 fps in Chrome, but only at 30-40 fps in Firefox.

  • Another option is to keep using instance variables on the Player sprite, but make the Player sprite global.

    The global instance of the Player sprite will automatically move to another layout with all its instance variables. All you need to do is set its position and maybe move to the correct layer.

    You need to be very careful - keep only one copy of the Player in the project (put it on the first layout), don't create new instances and don't destroy it. It's very easy to make a mistake and end up with multiple instances of the object, which will cause all kinds of bugs. That's why I don't recommend this method.

  • You don't have to transform all instance variables to global. Only those which need to be preserved when switching layouts.

    Working with Dictionary is easy and not much different from global variables.

    You can give any names to dictionary keys. For example:

    Dictionary set "lives" to 5

    Dictionary set "score" to (self.get("score")+100)

    Dictionary Compare "lives" value=0 : Player play animation "death"

    etc.

    There are probably some tutorials and lessons on how to use dictionaries, try googling.

  • Most common method is to use global variables for values which you need to be available across multiple layouts. You can also use dictionaries, arrays, JSONs.

  • Where do you currently store this progress? Is it in instance variables on the player sprite, or in global variables?

    With global variables, the progress should not reset when you switch between layouts. Unless you perform "Reset global variables" action, in which case - don't :)

    You can also use a Dictionary to store things like player stats, gold, scores etc. One advantage of dictionaries is that they can easily be saved in Local Storage.

  • Are you pasting the sprite on the Canvas? Try waiting longer before destroying the sprite - use "Wait 0.2s" instead of "Wait for previous action"

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-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
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies