Part bug Part missing feature

Bugs will be moved here once resolved.

Post » Wed May 14, 2014 5:48 pm

Pathfinding stop does not clear path
____ When using the pathfinding behavior on a global sprite, when switching layout and calling Stop, debug shows pathfiniding Has Path is still true and speed is not 0.____

Attach a Capx
____
pathfindingbug.capx
____

Description of Capx
____ Moving a global sprite using the pathfinding and switching layouts. ____

Steps to Reproduce Bug
  • Touch the screen to move the sprite (sprite will change color when speed is > 5 and reset when speed is back to 0.
  • Press 1/2 on the keyboard to switch between layouts 1 and 2.

Observed Result
____ Calling Stop pathfiniding on the start of layout stops the sprite movement but the sprite is still playing the walk animation and has path=true, speed=200. ____

Expected Result
____ Stop should clear the path from the memory or should have another clear path action. ____

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
____ Windows 7 SP1 ____

Construct 2 Version ID
____ 168 ____
You do not have the required permissions to view the files attached to this post.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Wed May 14, 2014 7:51 pm

Global means save the current state of the object to use in the next layout.
So its pretty much working as expected.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Wed May 14, 2014 8:01 pm

The problem is not with the object being global, i just checked it now, if i call Stop on the same layout the object is still on has path=true and speed 200.

the stop action should reset these parameters or alternatively another action for clear path.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Wed May 14, 2014 8:04 pm

If I come to a stop sign, that doesn't necessarily mean I'm not going to continue on the same path.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Wed May 14, 2014 8:09 pm

that's why i suggested another action for clear path :)
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Wed May 14, 2014 8:11 pm

and besides if you stopped why is your speed at 200 it should be 0, that's another way to fix the problem.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Wed May 14, 2014 8:25 pm

ok so i looked in the plugin and basically i need another stop action that also does this.s = 0;
but i don't want to modify the official plugin on my own.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Thu May 15, 2014 1:35 pm

@Ashley is there any reason why you are not setting the speed to 0 when calling the stop function?
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Post » Thu May 15, 2014 2:59 pm

What method are you using to determine the speed?
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Thu May 15, 2014 3:46 pm

The official speed condition of the path finiding behavior.
Image
B
71
S
28
G
12
Posts: 515
Reputation: 12,284

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest