How to make a sprite avoid an object?

Get help using Construct 2

Post » Sat Dec 29, 2012 4:59 am

@ramones: I think you're right, pretty intriguing algorithmn though...
What I have now is pretty simple. In the demo you have to block the green hexagon from getting to the dinosaur. You can drap the dinosaur to another spot if you want.

https://www.dropbox.com/s/apsig8if86gd5lb/mousetrapdemo.capx
https://www.dropbox.com/s/apsig8if86gd5lb/mousetrapdemo.capx
B
14
S
6
G
3
Posts: 71
Reputation: 3,811

Post » Sat Dec 29, 2012 3:36 pm

I was playing with the a* plugin yesterday: mouseyPathfinder.capx (r114)

I was having trouble with the mouse moving into the newly spawned blocker so I ended up separating the blocker spawning and the mouse moving. I see from your capx that you can manually block the path with the 'Astar: Block path' action. That's cool.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat Dec 29, 2012 4:56 pm

Wow ramones, that looks exactly like what I was looking for. Very nice. I'll study your capx and see what I can learn. Thank you!
B
14
S
6
G
3
Posts: 71
Reputation: 3,811

Previous

Return to How do I....?

Who is online

Users browsing this forum: GSquadron, jeffige, MarkThomas, MisterAqua, Nifl, paala and 21 guests