dop2000's Forum Posts

  • A better way would be looping in reverse.

    For array.width-1 to 0
    if array.at(loopindex) not equal 0 
    	: set ArrayLength to loopindex
    	: Stop loop
    
  • If you don't need to record the entire screen, only a portion of it, you can use Drawing Canvas - paste objects on it, save image, load it into a sprite. But, of course, it will also work faster with small image size.

  • When you load snapshots into the sprite, you can resize them to sprite size. Say, if you set all frames size in the sprite to 240x320, the image will be resized to this resolution.

  • To load a tilemap saved from C3 use "Tilemap -> Load" action (not "Set from JSON"). Then it works. Try this JSON data:

    {"c2tilemap":true,"width":15,"height":8,"data":"18x-1,4x0,5x-1,2x0,3x-1,2x0,2x-1,2x0,3x-1,3x0,3x-1,0,3x-1,2x0,3x-1,0,9x-1,0,4x-1,0,9x-1,6x0,33x-1"}
    
    

    Not sure if you can load a tilemap made in Pixeledit, as its JSON file has a completely different structure.

    Another format supported in C3 is TMX, you can load TMX files manually in Tilemap bar. So if Pixeledit supports export to TMX, you can do that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No worries! The demo for non-linear plot is pretty specific, the level structure is stored in instance variables on the buttons (in main menu). Which is not a very good solution as you can't access this data from other layouts. A better way would be creating a JSON or XML file for this data.

  • Yes, please read my previous comment.

    There are two ways to take a snapshot - with system action and with Paster plugin. What you are trying to do is some weird mix of both.

    .

    Here is how you make a snapshot with Paster:

    .

  • Your original code doesn't need Paster at all. You use System action "Take Snapshot", which copies the entire window. That's why you have to resize and scroll it first.. It's messy and difficult. Much easier to make a snapshot of the area with Paster.

  • You can change Paster resolution (Set Resolution action), then paste objects or layers on it, then save Paster image. It will be saved with selected resolution.

  • I don't understand what are you trying to do, and why you are changing canvas size and scrolling to Paster object?

    You want to make a snapshot of the grid area? Then simply do this:

  • link Limit the angle of view for Turret behavior

    link Use containers with families - two methods of picking objects from the same container when using families.

    link Create a realistic chain or rope with Physics

  • game takes a snapshot on mobile - it is not automatically saved to the album as screenshot

    No, when you use "Take snapshot" action, the image is not saved in the album.

  • New demos!

    link 3D Star Field Effect

    link Create Non-Linear Plot and Alternative Endings in your adventure game

    link Create a reflection with water effect

  • Run the project in debug mode, check position of the Paster object there.

    If it doesn't help, please post your capx.

  • removed......

  • You need to post your project file and a sample of JSON that you are trying to load.