Page 1 of 1

Z-depth, and parenting issue, actor vibrates.

PostPosted: Wed Mar 31, 2010 12:04 am
by huldra1980
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?

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

PostPosted: Wed Mar 31, 2010 12:12 am
by Hblade
Yeah this'll be like that, I dont know why :/

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

PostPosted: Wed Mar 31, 2010 4:36 am
by Bee-Ant
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));

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

PostPosted: Wed Mar 31, 2010 11:48 am
by huldra1980
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?

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

PostPosted: Wed Mar 31, 2010 12:07 pm
by Hblade
I wonder how Bee-ant got so smart o.o

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

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

PostPosted: Thu Apr 01, 2010 9:53 am
by Bee-Ant
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 :)

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

PostPosted: Thu Apr 01, 2010 1:03 pm
by huldra1980
Thank you so much! Another +1 for you, wish I could've given you more :D

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

PostPosted: Thu Apr 01, 2010 2:52 pm
by Bee-Ant
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