Game Development Community

is it just me or is onPositionTarget sketchy?

by rennie moffat · in iTorque 2D · 11/03/2011 (6:04 pm) · 3 replies

Is it just me or is onPositionTarget() sketchy?


When it works (off that bat), it works all the time, but sometimes, it just doesn't and then refuses to.

Case in point.



code from my current class.
function bbGuideWallBhvr::move(%this)
{
$bb.moveTo(%x, $yConst, %this.bbSpeed, true, true, true, 0.1);
}


this is not calling this....
function bbGuideWallBhvr::onPositionTarget(%this)
{
	echo("bbGuideWallBhvr:: onPostionTarget()");
}

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
11/04/2011 (12:20 am)
It works good for me. I have not experienced problems with onPositionTarget yet.
#2
11/04/2011 (5:20 am)
I used to have problems and I think I ended up modding the engine way back in 1.3 days. My problem was that if the velocity was high and FPS poor then it would sometimes overshoot and not therefore call onPositionTarget. Seems okay these days, I also tend to use paths as these seem more reliable.
#3
11/04/2011 (9:25 am)
weird. my fps is good and my speed is good too.


i bet it will just start working today.
thanks.