Hello,
I have an animation view of an explosion for a specific object. Everything is scripted and functionally works, but the animation view is offset from the object. The object is called oPredator and here's my code:
Code: ags
For some reason, the animation of the explosion appears in a different location from where the oPredator object is. Any idea how I can make the animation centered over the oPredator object? Thanks,
-Reid
I have an animation view of an explosion for a specific object. Everything is scripted and functionally works, but the animation view is offset from the object. The object is called oPredator and here's my code:
if (bCheckCollisions == true)
{
// EXPLOSION
if (oHellfire.IsCollidingWithObject(oPredator))
{
//Display("KABOOM");
//ShakeScreenBackground (int delay, int amount, int length)
ShakeScreenBackground(5, 15, 20);
oPredator.StopMoving();
//oPredator.Visible = true;
oHellfire.Visible = false;
oPredator.SetView(4);
oPredator.Animate(0, 5, eOnce, eNoBlock, eForwards);
// Stop moving the missile
moveHellfire = 2;
}
}
For some reason, the animation of the explosion appears in a different location from where the oPredator object is. Any idea how I can make the animation centered over the oPredator object? Thanks,
-Reid