I have close example to what you are looking for:
dropbox.com/scl/fi/tg77zet7t37gpmilvtyrd/collapse_puzzle_rev.capx
> Roughly it just creates attachment points around all the attached objects, and then deletes invalid points that overlap other attached objects. > > It keeps track of what's attached with a boolean variable and doesn't let moving objects get attached so you can throw them. Also it keeps track of the order the objects are added with a number variable. > > dropbox.com/scl/fi/7vf4eia7vzvmnzd8hoi6g/dynamic_attaching.capx
> Roughly it just creates attachment points around all the attached objects, and then deletes invalid points that overlap other attached objects.
>
> It keeps track of what's attached with a boolean variable and doesn't let moving objects get attached so you can throw them. Also it keeps track of the order the objects are added with a number variable.
> dropbox.com/scl/fi/7vf4eia7vzvmnzd8hoi6g/dynamic_attaching.capx
Oh wow it's like a bubble shooter but in reverse!
Track shifting example: dropbox.com/scl/fi/lni4b6qe6mxay8f18zocr/track_shifter.capx
In this example I just show how to change lane which you can change the trigger based on your requirement.
If you already create action for each direction string you can put the 8Direction pressing simulation there. Since you are using Gamma & Beta orientation make sure test the project using gadget that has accelerometer.
You can't put failedCount < 15 and failedCount >= 15 under same event, I mean sub event. Just separate them to two different event without nested to each other.
In Construct first frame indexing as frame 0
When clicked set animationFrame to abs(Sprite.animationFrame-1) or (Sprite.animationFrame+1)%2
> Offline login (matching keyword): dropbox.com/scl/fi/htwm06lgjto8h4t8gbp7h/login.capx
Local Hi-scores: dropbox.com/scl/fi/dba7yw6876u841mbnll3m/contoh_highscore.capx
It is: dropbox.com/scl/fi/w6mjtd46p994n4dguweat/4-direction-press-touch.capx
Second array? If the name is Array2 you can just set it Array2.At(0, random(Array.Height)) for example.
Develop games in your browser. Powerful, performant & highly capable.
Sure not every condition can be passed to expression, yet that some common programming practice can be performed with proper expression writing. Sometimes I want to put complex ternary in one line some other time I'll just do straight event sheeting.
Set value to:
Array.At(0, random(Array.Height)) for 0 index column
Array.At(1, random(Array.Height)) for 1 index column
Array.At(2, random(Array.Height)) for 2 index column
In expression you directly assign value to specific attribute. The comparison can be anything but it needs to be put into a value/property/attribute. works just like if else condition (ternary) even nested one. So yes everything were put in action and you can leave the condition blank or under certain condition.
https://ibb.co.com/zx36X9D[/img]
A prove: dropbox.com/scl/fi/vclxylb1wz8yuu8t9ho2n/ternary_and_or.c3p
Of course you can put & operator for adding extra condition in expression. For mirrored the expression using width parameter but negative (-width).
You probably want to use Ternary operator to put action based on several criteria under single event like what I do in following case: onicstudios.wordpress.com/2021/02/04/formula-that-moves-object-efficiently
Try search on forum with keyword 'ternary' so you will end up with relevant topics.
The most extreme use case I came up with is this one:
dropbox.com/scl/fi/tj43mky0cinrz7516migo/moving_up.capx