dx and dy can be instance variables on the sprite, or global variables. I tested this code and it definitely works.
Here is the easiest way:
On Touch start Set dx to (Touch.x-Sprite.x) Set dy to (Touch.y-Sprite.y) Is in Touch Sprite set position to (Touch.x-dx, Touch.y-dy)
You can set a tag in Solid properties for the wall object, and use "Set solid collision filter" action to make enemies ignore solids with this tag.
Press F12 in the browser and see if there are any error messages in the console log.
jatin1726 Try this demo:
dropbox.com/s/hnhepai660anaf4/ScrollingListOfPlayers.capx
Sorry, I don't understand. You can rotate the image left and right many times, not just once.
I don't know regex that well, but I know how to do this with tokenat and tokencount:
For x=1 to tokencount(sourceString, "[command]") Set s = tokenat(sourceString, loopindex, "[command]") Set functionName to tokenat(s, 0, "[/command]" Array push functionName
Did you see the built-in "Audio Analiser" template? Click New project and search for "audio".
Oh, I don't read German, so I thought the problem was with very little space between letters like "i" and "l".
You do not have permission to view this post
Here is my attempt, it's not great, but seems to be working.
dropbox.com/s/5u6nbynf0wlrs4d/HexPathfindingMovement.capx
You will need to install MoveTo addon.
Develop games in your browser. Powerful, performant & highly capable.
Member since 26 May, 2016 Last online 25 Feb, 2025