Check links in this post, there may be an easier method:
construct.net/en/forum/construct-3/how-do-i-8/bitwise-bitmasking-autotile-150445
Bro, just set horizontal alignment=center, vertical alignment=center, Hotspot=center.
If this is not what you meant and the problem is with something else, you need to give more details and post your project file.
Actually, there is an easier method with just one action:
On every tick Scroll to X: (scrollx + cos(Touch.AngleAt(0))*Touch.SpeedAt(0)*dt * 0.6) Y: (scrolly + sin(Touch.AngleAt(0))*Touch.SpeedAt(0)*dt * 0.6)
Develop games in your browser. Powerful, performant & highly capable.
This will scroll in the opposite direction at 0.6 speed
You mean the music starts playing, even when the sprite is not on screen?
Or the music continues playing when you move to this layout from another one? In this case you need to stop the music, it won't stop itself when you switch layouts.
You mean something like this?
dropbox.com/s/8zap7yuhwdb0pcb/Farming_TileSet.capx
Try this:
C checked and E checked and Submit checked B checked -> wrong else -> correct
You do not have permission to view this post
Unless you are performing this on every tick, with your array size I don't think there will be any difference in performance even if you do 1000 passes.
If you need to scan every row and every cell for a certain value and repeat this until this value is no longer there, here is how you can do it:
You can save Paster.imageUrl, it contains image data in BASE64 format.
To load it back, use "Load image" action.
Note that BASE64 is very bloated format, saving a large image may be quite slow.
Array.IndexOf(0) will give you the index of the first empty element in the array. You can then delete it or write something to it.
Your event 2 is inside the loop, which is wrong. It needs to be executed after all 40 trees are created. Check my demo again to see how these events should be organized.
And of course the player and the trees should be on the same layer.
Member since 26 May, 2016