Page 1 of 1

View shaking problem

PostPosted: Sat Mar 10, 2012 6:00 pm
by Hblade
Hello everyone. Me again xD I've came across a shake issue, the view will stutter and shake sometimes, and its rather annoying o-o

the code is:
Code: Select all
angle=direction(x+576/2,y+432/2,COLL.x,COLL.y);
    directional_velocity=distance(x+576/2,y+432/2,COLL.x,COLL.y)/5;


Any ideas on solving it? Thanks.

It only shakes when my player lands on the ground and the view is moving vertically, instead of stopping, it moves pass the player and back up again, making a shaking appear.

Re: View shaking problem

PostPosted: Sat Mar 10, 2012 8:34 pm
by tintran
i can't reproduce this.
What are your yvelocity values for when
when user hits jump button
and yvelocity increment in COLL draw actor?

Re: View shaking problem

PostPosted: Sat Mar 10, 2012 8:47 pm
by Hblade
I've tried modifying the yvelocity, but maybe you can modify it better. here:
Code: Select all
if(yvelocity<20) {
    yvelocity+=1;
                }
if(yvelocity>2)
{
    if(pJump!=2)
    {
        pJump=1;
    }
}

EDIT:
fixed o-o
I changed 1 to 1.5 and it works fine! :D

Re: View shaking problem

PostPosted: Sat Mar 10, 2012 9:05 pm
by tintran
i am guessing you're setting yvelocity = -20 when user hits jump button?
still can't reproduce. :(

Re: View shaking problem

PostPosted: Sun Mar 11, 2012 1:44 am
by Hblade
It's fixed, and I don't really know o-o when he lands from the jump is when it happens, but its fine now :)