Simplest pathfinding around a tilemap track

Just started using Construct 2? Post your questions here

Post » Sun Jan 10, 2016 9:26 pm

LittleStain wrote:Well, like in the bulletevent, you should check if you're not at the last node, because destinationnode+1 doesn't work there..

Well, for flexibility, I'd need to tell it "the last node" or something, I can't use a fixed number because I'd have to manually change it for every track I used this on. I can't see anything under pathfinding where I can condition this?
B
39
S
12
G
14
Posts: 1,110
Reputation: 11,184

Post » Sun Jan 10, 2016 9:50 pm

Zebbi wrote:
LittleStain wrote:Well, like in the bulletevent, you should check if you're not at the last node, because destinationnode+1 doesn't work there..

Well, for flexibility, I'd need to tell it "the last node" or something, I can't use a fixed number because I'd have to manually change it for every track I used this on. I can't see anything under pathfinding where I can condition this?


The flexibility you are talking about is already implemented in the events that set the bullet-behaviour, so that shouldn't be a problem..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests