walk terrain bbox problem, and problem mouse

Posted By: GaniX

walk terrain bbox problem, and problem mouse - 09/14/12 20:24

hello to those who read this message.

I have 2 problems so I uploaded it for quick understanding:
problem 1

http://www.mediafire.com/?985fgpp5gmdooq5 download link

I have 2 mages, one superimposed on the other, I do click to the front mage trying to do click to behind mage.
the front mage is not sensitive to the mouse, but the back mage is sensitive.
i only can click the back mage, but the front mage is obstruct.

why ,waht can i do?




and the other problem is difficult to explain:

I have the player walking arround the level stage ,is walks well ,but when in contact with terrains , the walk is shaking the camera, I guess it's caused by the way my.zC_trace (.... use_box), also i practice to use the mode used in the little worcshop 24 samples: c_trace ...... my.z = hit.z-vfeet ... and produces an ugly motion effect when climbing stairs or similar things

http://www.mediafire.com/?d1dfaat0ahkd611 download link

if you try to do that (mode of workshop 24) remember the model of player must not use bbox , and remember use no movevec[2], use mi.z= hitz-vfeet.

my question: what can ido to delete this shaking camera?

help pls
Posted By: Widi

Re: walk terrain bbox problem, and problem mouse - 09/14/12 20:55

Code:
action transp()
{
	my.flags2 |= UNTOUCHABLE;  // <-- this is what you missing
	set(my,TRANSLUCENT);
	my.alpha = 50;
}


And why set you this action in a while loop????
Posted By: GaniX

Re: walk terrain bbox problem, and problem mouse - 09/14/12 21:41

thanks for your help, i put this acction in a while because i think i must do this way.

and about the 2 problem you have one idea?
Posted By: jcl

Re: walk terrain bbox problem, and problem mouse - 09/17/12 07:57

A shaking camera can be caused either by a bad adjusted movement code, or by a bad position of the bounding box - make sure that the entity's origin coordinate is really at its center. The usual mistake is an origin at or below the entity's feet.
© 2024 lite-C Forums