dop2000's Forum Posts

  • Does encapsulation cause performance degradation?

    I've heard people say that, but I wonder if that is actually the case.

    Yes, this did happen with the rollout of SDK2. The biggest issues were fixed, but there is still a small performance overhead, and in certain cases pre-SDK2 Construct releases can be a tiny bit faster.

    From what I understand, the SDK3 being discussed here applies to the editor API, so it shouldn’t affect runtime game performance. That said, there have been reports of the editor lagging or freezing for some devs. Here is one from just two weeks ago. It also runs out of memory on large projects. I really hope SDK3 encapsulation doesn’t make those issues worse.

  • Ashley Of course we value reliability, but we also want a capable and competitive game engine with strong support for addons. What would be the point of Construct if it began losing ground even to free engines like GDevelop?

    I've asked this question in the previous post: can you work with Skymen on safely integrating his (or a similar) API? Surely this would be a more productive use of time than developing SDKv3.

  • Huh, turns out that setting the animation speed on every tick makes the ping-pong animation to get stuck.. This is probably a bug, feel free to report it:

    github.com/Scirra/Construct-bugs/issues

    I made a minimal repro project:

    dropbox.com/scl/fi/tqm2htdpucls7t3hpr4h3/PingPongAnimationBug.c3p

  • Instead of "play from beginning" try "play from current frame".

    If that doesn't help, then there's probably some other event in your code that briefly changes the animation to a different one, which causes the "Climb" animation to restart.

  • Ashley, wouldn't it be a lot more productive to work with Skymen on properly integrating and safeguarding his API, rather than spending time and effort opposing it?

  • tileWidth and tileHeight are read-only in events too, you can't change them. You can probably prepare a bunch of tilemap templates with different tile sizes instead.

    mapWidth and mapHeight are calculated from the tilemap's width+height. Say, if the tile size is 16 and the tilemap width is 1600, then the mapWidth expression will return 100.

  • 1. Press F12 and check error messages in the browser console.

    2. Try clearing browser data.

    3. Try a different browser.

  • You can try tweening a value, and setting the angle directly with this action:

    Car Tween "turnadjust" is running
     Car Set angle to self.Tween.value("turnadjust")
    
  • It's probably conflicting with the Car behavior - both are trying to control the angle.

  • If you have time, could you please port the EasyStarJS behavior?

    construct.net/en/make-games/addons/1140/easystar

    Thank you for doing this!

  • You can load (parse) that JSON string into JSON object. But if you want to load into a C3 array, then the string needs to have a very specific format. For example:

    {"c2array":true,"size":[3,1,1],"data":[[["John"]],[[123]],[[456]]]}
    
  • Since you have WalkLeft and WalkRight animations, why do you need to mirror the sprite?

  • Looks like you have two Dir variables - one global/local and one instance. Make sure to use the instance variable on the Frog sprite.

  • You can use the Timer behavior.

    Player On hit
    Timer "invincible" is not running 
     ---> Player Subtract 10 from health
     ---> Player Start "invincible" timer for 1 second
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for your example, I'm trying to understand how it works now and adapt it to my version of Construct 2, but Construct 3 has much more functionality than Construct 2

    You can definitely recreate my example in Construct 2 — it has all the features you need. It just requires a bit of effort on your part, rather than waiting for someone else to put the whole project together for you.