Z-depth, and parenting issue, actor vibrates.

Non-platform specific questions.

Z-depth, and parenting issue, actor vibrates.

Postby huldra1980 » Wed Mar 31, 2010 12:04 am

Instead of using the parenting function, to avoid the z-depth problem, I tried:

x = view.x;
y = view.y;

But then that actor kinda vibrates. Any idea what could be wrong?
huldra1980
 
Posts: 7
Joined: Sat Jan 23, 2010 4:27 pm
Score: 0 Give a positive score

Re: Z-depth, and parenting issue, actor vibrates.

Postby Hblade » Wed Mar 31, 2010 12:12 am

Yeah this'll be like that, I dont know why :/
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: Z-depth, and parenting issue, actor vibrates.

Postby Bee-Ant » Wed Mar 31, 2010 4:36 am

Try this
Code: Select all
x=max(view.x-5,min(x,view.x+5));
y=max(view.y-5,min(y,view.y+5));
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Z-depth, and parenting issue, actor vibrates.

Postby huldra1980 » Wed Mar 31, 2010 11:48 am

Thank you! That code took away the vibrating :D

However, another problem occured, I can't seem to place it properly. When I used something like:

x = actor.x + 180;
y = actor.y + 34;

It worked fine, despite the vibrating. With the new code that takes away the vibrating, I can't seem to find a way to place it properly. Anyone knows how to do this, using this code?
huldra1980
 
Posts: 7
Joined: Sat Jan 23, 2010 4:27 pm
Score: 0 Give a positive score

Re: Z-depth, and parenting issue, actor vibrates.

Postby Hblade » Wed Mar 31, 2010 12:07 pm

I wonder how Bee-ant got so smart o.o

Thanks bee, now you've helped me too :D +1
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: Z-depth, and parenting issue, actor vibrates.

Postby Bee-Ant » Thu Apr 01, 2010 9:53 am

huldra1980 wrote:x = actor.x + 180;
y = actor.y + 34;

Try this :
Code: Select all
x=max(actor.x+175,min(x,actor.x+185));
y=max(actor.y+29,min(y,actor.y+39));


Hblade wrote:I wonder how Bee-ant got so smart o.o

Thanks bee, now you've helped me too :D +1

I just might have more experience, that's all :D
Thank you :)
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Z-depth, and parenting issue, actor vibrates.

Postby huldra1980 » Thu Apr 01, 2010 1:03 pm

Thank you so much! Another +1 for you, wish I could've given you more :D
huldra1980
 
Posts: 7
Joined: Sat Jan 23, 2010 4:27 pm
Score: 0 Give a positive score

Re: Z-depth, and parenting issue, actor vibrates.

Postby Bee-Ant » Thu Apr 01, 2010 2:52 pm

huldra1980 wrote:Thank you so much! Another +1 for you, wish I could've given you more :D

You're welcome :D
I would like to help you more as well :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest