You can do something like this:
Global Variable CoinsBalance=0 Player on collision with Coin Coin destroy Add 1 to CoinsBalance CoinsText set to "Coins: " & CoinsBalance
If you want to make a nice effect when picking coins, check out the new template "World to HUD Position" in beta version of Construct.
https://editor.construct.net/#open=world-to-hud-position
Empty cells in the array make the task more difficult. You should either copy non-empty cells into a temporary array, and shuffle it. Or use this method with Advanced Random:
dropbox.com/s/elkhyxz8u75syzb/QuestionForDop2000%20%28With%20Layouts%29.c3p
I don't understand what you are trying to achieve, even with the project file.
Can you explain?
If you need to shuffle 2D array, can you post two pictures - the original array and shuffled (manually, just as an example)?
If it's a simple linear gradient you may be able to calculate rgb values.
You can also post it on a DrawingCanvas and read pixel data from it.
If you are making a color picker, check out this page:
howtoconstructdemos.com/hsv-color-picker-tool-c3p
The logic I gave you was for a 1D array, but you have a 2D array on your screenshot. I don't quite understand how you want to shuffle it.
Develop games in your browser. Powerful, performant & highly capable.
This is not a bug and will not be fixed.
You can post a suggestion here, if you think there is a better way to display arrays in Debug mode.
It's not required anymore, so it was removed.
Here is another simple way to do it - no arrays, no Advanced Random:
..
BTW - what does "BUMP" mean?
You mean on this forum? It's when you are posting a comment in your post just to move to the top of the list of topics. When no one replies to your post for several days, it may go to page 2 or 3 where many people will not see it. So you use "bump" to return it to the first page.
Are you using Construct 2? The files should be located where you saved them. Try looking in the Documents folder, or search the entire drive for *.capx or *.caproj files.
Check out this demo:
howtoconstructdemos.com/enemies-walking-around-walls-metroid-style-or-patrolling-the-perimeter-enemy-ai-capx
For-each loop should work in this scenario. Please post a screenshot of your code or the project file.
It works for me.
Try this:
JSON For each "array" : List Add Item JSON.CurrentValue
Press F12 in browser and check if there are any errors in Console log.