How do I use pathfinding when filling empty cells in a grid?

Get help using Construct 2

Post » Wed Oct 18, 2017 2:10 am

Here is the file saved with version 244:
https://www.dropbox.com/s/keqejly091y9m ... .capx?dl=0


Hint - CAPX is actually a zip archive. You can extract it to an empty folder, open .caproj file in a Notepad or other editor and change version in this line:
Code: Select all
<saved-with-version>24600</saved-with-version>
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
126
Posts: 1,752
Reputation: 67,325

Post » Wed Oct 18, 2017 2:49 am

Wow. Thank you SO much. You really helped me out! I'm super new to construct 2 so I'm still getting the hang of which events are the best to use for what.
I really appreciate it, thanks!
B
6
S
2
Posts: 36
Reputation: 488

Post » Wed Oct 18, 2017 2:53 am

@kellehk
And... one more improvement :)
Dots can now fall many at once, they don't wait for other dots to stop moving.
https://www.dropbox.com/s/qm2biem1il1p8 ... .capx?dl=0

Pretty cool game by the way!

You can improve controls a bit (especially if you are planning to publish it for mobile).
Add another invisible sprite DotTouch, make it about 4 times bigger than the dot. Create a container with Dot and DotTouch for easier management, and pin DotTouch to each Dot on start of layout.
Change your touch events:
Touch -> On touched DotTouch
Touch -> Is touching DotTouch

You don't need to pick Dot inside the event, as it is in the same container, it will be picked automatically.
And DotTouch will be destroyed automatically too.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
126
Posts: 1,752
Reputation: 67,325

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests