Use dictionary object or array or something represent list. Array for example simply a table hash you can store various values (be it animation name, level, enemy, etc) then retrieve these values via index (like column/row order).
Develop games in your browser. Powerful, performant & highly capable.
No worries. It just the way I am doing things as efficient as possible I could think off.
Use expression as following: Angle(object.X, object.Y, reference.X, reference.Y)
where "reference" refer to another point of position towards the angle.
A fancy control scheme (warning expression extensive!) for both keyboard and touch control: dropbox.com/scl/fi/w6mjtd46p994n4dguweat/4-direction-press-touch.capx
Let me know what you think.
I didn't get it. Your project just works fine, the player can't go through any obstacle. Is there any game title as reference to understand what you are after?
You meant tile movement behavior? Possible but need some work around. Why not just pathfinding behavior?
My "Family" approach: dropbox.com/s/4ahybqe3t0k758f/biters.c3p
It has been asked many times and I provide an example: dropbox.com/s/ibrle5bdb4rhmfy/path_touch.capx
Look no more:
dropbox.com/s/u5qjckrm57tzxic/contoh_highscore.capx
Boss fight tutorial with example:
construct.net/en/tutorials/epic-boss-battle-1140
There are several examples on grid pathfinding in forum try do a search.
My example related to your question:
dropbox.com/s/fumc7ctko35r68r/tap%20path.capx
and
dropbox.com/s/mcd4qp16mp07lce/path_orient3.capx
To set values add loop "for" in condition and set end index to length/width of array. Now just set value at(loopindex) to values you are referring by using another loop "for" for the value. More or less like that to simplify filling an array.
I learn that in first example it is makes sense using direction angle between 90 and -90 which is utilize facing & angle degree at once. Nice & modular.
Such an enjoyment to play the game despite that I don't know all the rule especially with the cat's hand.
You can drive behavior or object properties via event based on reference or comparison.
An example: dropbox.com/s/9kvh0r3vzdm8bux/trail_of_trail.capx