I'm attempting to create ROTT style moving walls using PolyObjects. My first method invovles the polyobjects moving from one mapspot to another (Polyobj_MoveToSpot) and the second method is to use map coordinates. Both work as intended, but they create no sound (I do have the sound sequences correctly defined). However just using Polyobj_Move does create the correct sound, so why is this not working for Polyobj_MoveTo and Polyobj_MoveToSpot?
Here's my MoveTo script:
Code: Select all
script 3 open
{
Polyobj_MoveTo(0, 32, 1376, 1568);
Polyobj_MoveTo(1, 32, 1440, 1568);
Polyobj_MoveTo(2, 32, 1504, 1568);
Polyobj_MoveTo(3, 32, 1568, 1568);
delay(1);
Polyobj_MoveTo(0, 32, 1376, 1824);
Polyobj_MoveTo(1, 32, 1440, 1824);
Polyobj_MoveTo(2, 32, 1504, 1824);
Polyobj_MoveTo(3, 32, 1568, 1824);
delay(1);
restart;
}

I attempted this just using Polyobj_Move, and it only works if you set the delay exactly to how long it takes for the polyobject to move from one point to the next (but it does create sound!), any delay that is less causes the polyobject to move forever in only the initial direction. Also, using this method if you walk into the polyobject it breaks and then continues to move off the map (is there any way to make polyobjects move at a constant speed even when an actor get's in to it's path?) Additionally, if I remove the reset, the polyobject refuses to move in the opposite direction unless you make the delay exactly the amount of time it takes to travel one direction. This is also a very inefficient method as the script to move 4 of these requires separate open scripts for each polyobject, so it get's quite messy and long winded.
Is this a bug or am I doing something wrong?
Ty!
