dop2000's Forum Posts

  • Sorry for that. I uploaded v5 to itch.io, please download it.

  • A large number of objects by itself doesn't automatically mean bad performance.

    There are many things which can affect the performance - effects, behaviors, events running on every tick, collision checks etc. You need to find which of these factors are present in your game and try to optimize them.

    If you have an effect applied to many objects, move it to a layer instead.

    If lots of sprites have active behaviors, you should disable them if possible, when they are off-screen. Pathfinding, for example, may be very demanding, especially on a large map. Try not to use actions like "find path" or "refresh obstacle map" too often. There's also a much more performance friendly plugin for pathfinding you can try - EasyStarJS.

    If the game makes lots of collision checks per tick (1000 or more), you can try reducing them, this will definitely help with the performance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I see you have an old template on your screenshot.

    Please download the latest version. There is a function CreateRugdoll which creates a new ragdoll from a hierarchy.

  • That should not happen with my code.

    If it still doesn't work correctly, please post a screenshot of your events.

  • Don't pay attention to all those local variables and functions, don't try to replicate my code, it won't work in your game! My screenshot was just to demonstrate how you can use small scripts in your events to call various methods from CrazyGames SDK.

    For example, when a new level starts in your game, you should run this script:

    crazysdk.gameplayStart();

    Please refer to their documentation.

  • Sorry, Ashley, you are right, turned out that almost instant saving time was with the folder project. (I need more sleep)

    Still saving to a single file in r327 is now slower than it was in r317. Same project on the same PC takes 26 seconds versus 11 seconds in r317. Which made me suspect that there was something wrong. I guess this is how Zip64 works, so it's not a big problem.

  • I did this using a hierarchy. Connect all parts of the doll to the body with hierarchy. Disable physics for all objects by default.

    In runtime create the body sprite with hierarchy checkbox selected. This will create the entire ragdoll. After that you will have to enable physics for all parts and re-create all physics joints.

    I have a paid template where you can create multiple ragdolls:

    construct.net/en/game-assets/game-templates/physics-ragdoll-construct-16

  • You can set a Timer when the character collides with a spike. Only reduce its health if the "invincibility" timer is not running. Or you can use a variable for the same purpose.

    Player On Collision with Spike
    compare variable InvincibleTime<time
    ... Player Subtract damage from health
    ... Set variable InvincibleTime to (time+2)
    
  • We're making the Moonstone Island - a creature collecting life-sim set in an open world with over 100 islands to explore! Our alpha demo is currently playable as part of the Steam Base Builder Fest and will be available until January 30th at 10AM PST! Please wishlist the game as it helps us a lot. Thank you!

    Download Moonstone Island Demo on Steam

  • We're making a creature collecting life-sim set in an open world with over 100 islands to explore! Our alpha demo is currently playable as part of the Steam Base Builder Fest and will be available until January 30th at 10AM PST!

    Please wishlist the game as it helps us a lot. Thank you!

    Download Moonstone Island Demo on Steam

    Download Moonstone Island Demo on Steam

  • understand but what if i have placed Sprie already on the map?

    "On created" will still be triggered for them.

  • You do not have permission to view this post

  • Yes, you can use "On end of layout"

  • You do not have permission to view this post

  • Sprite On Created: Sprite set var to random(10,30)

    Note, if you want an integer number from 10 to 30, the correct expression is int(random(10,31))