pinned object freely moving

Get help using Construct 2

Post » Fri Dec 30, 2016 4:34 am

Image
i am trying to teleport the player near the enemy base (the red circle) and pin it there if the enemy weapon collides to the player. however, the player can still freely move even if pinned. in the screen shot, the "is Pinned" status is true yet it should be not moving.

i already tried doing it on new project to test it and it works well on that particular project. is this some bug on the IDE? i have been experiencing a lot of trouble on pin and pathfinding behavior where it works on other new projects but not on my current project.
B
18
S
2
Posts: 13
Reputation: 794

Post » Fri Dec 30, 2016 4:55 am

i have fixed it. earlier, i am trying to trigger pin behavior by comparing variables. although it makes the "is pinned" true, it fails to actually pinning the object to another object.

now, i tried to trigger pin behavior on collision and works how i want it to be.

again, is it a bug on pin or just an error on my logic. i realized that i was doing the same on pathfinding behavior that's why it doesn't work properly.
B
18
S
2
Posts: 13
Reputation: 794


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests