dop2000's Forum Posts

  • I don't understand what are you trying to do and how to fix this. Are you sure you want to change z-elevation and not z-order?

  • Sorry, like I said, it's quite a lot of work. I can do it, but it will not be free. Maybe someone else can help, or there is an easier solution which I overlooked..

  • You do not have permission to view this post

  • Like I said, it's a lot of work. I don't enjoy working with arrays in Construct.

  • This is much more difficult. I suggest copying players to another array. For example, for 3-4-3 formation, loop through the first array, searching players with "DF" role, copy them to another array, repeat this 3 times. Then do the same for "MD" players, repeat 4 times, then 3 times for "AT" players.

    .

    It would be easier without any arrays, if you had sprites for players. Add 18 instances of Player sprite, they can be just invisible rectangles. Define Role instance variable for each player. Then pick the first 3 "DF" players, add them to the team - set "IsInTeam=true" instance variable or something like that. Pick 4 "MD" players, add to the team. Pick 3 "AT" players, add to the team.

  • That's what I told you 2 days ago! Check this comment:

    construct.net/en/forum/construct-3/how-do-i-8/sort-array-152524

    That demo that you gave worked like that. It assigned different roles to the same player depending on the formation.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is not a glitch, but a feature. Create a triggered event, for example "On collision", then right-click and change it to OR-block. After that you can add more triggered events to the same block.

  • It should return to 0 when the player is less than 20px above the ground.

  • You can't use "Add 1" because your event is triggered ~60 times per second.

    Try this:

    Set ABC to int((Ground.BBoxTop-player.Y)/20)

  • 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.

  • — 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:

    .