View shaking problem

Non-platform specific questions.

View shaking problem

Postby Hblade » Sat Mar 10, 2012 6:00 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: View shaking problem

Postby tintran » Sat Mar 10, 2012 8:34 pm

i can't reproduce this.
What are your yvelocity values for when
when user hits jump button
and yvelocity increment in COLL draw actor?
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: View shaking problem

Postby Hblade » Sat Mar 10, 2012 8:47 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: View shaking problem

Postby tintran » Sat Mar 10, 2012 9:05 pm

i am guessing you're setting yvelocity = -20 when user hits jump button?
still can't reproduce. :(
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: View shaking problem

Postby Hblade » Sun Mar 11, 2012 1:44 am

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 :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest