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.
Develop games in your browser. Powerful, performant & highly capable.
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:
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.