Movement Jitter/lockon

Get help using Construct 2

Post » Sun May 26, 2013 6:19 am

I have been using custom movement and some objects to get an object that will be attracted to your location and everything, but it jitters when the player moves.

Hammer Movement

It's especially noticeable when I scale it up for the current project I'm working on, so I was wondering what kind of solutions would you folks recommend.
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Sun May 26, 2013 9:42 am

Use Pin behavior when it collides.

Pin bevahior never jitters.
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Mon May 27, 2013 1:01 am

[QUOTE=Joannesalfa] Use Pin behavior when it collides.

Pin bevahior never jitters.[/QUOTE] @Joannesalfa
Pin can unpin it so it won't overlap/go through the wall when I need the lockon box to move through walls right?
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Mon May 27, 2013 4:12 am

Well it can Unpin it, but I might be using it wrong or something.
Especially at higher speeds it's noticable when you the jitter happens

However I rearranged some code originating with the marker, and apparently it should go before control functions of the hammer to ensure it's position is updated before the other's.
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Mon May 27, 2013 4:51 pm

@Thndr Honestly, I don't know what's your design of this game. You should implement groups as booleans.

B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Tue May 28, 2013 12:55 am

Well that was more of an example trying to get things working, in case there was more custom movement bugs to report.

Re-arranging the code got it working the way I wanted, since the code that adjusted the marker boxes came between hammer movement modifications, causing the issue
B
15
S
4
G
4
Posts: 294
Reputation: 3,225


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests