dop2000's Recent Forum Activity

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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