M
Megamini009
Guest
Hello,
So at the moment Im working on a game that has multiple enemies with set paths in room 1.
They are currently set to persistent.
When I go to room 2, the paths are unaffected, but the instances are all moved.
The y being the biggest change which changes it to minus whatever its y was previously.
E.g In Room 1, the enemy.y = 320, after returning to Room1 from Room2, the enemy.y = -320
It seems to be only a problem with the Objects on Paths, as the other objects in Room1 which are also persistent, remain in their correct positions.
Any ideas and suggestions would be appreciated, I can post up code blocks if needed.
Thank you for looking !
Update: It seems it always shifts the y coordinate by -638...
Update: OKAY so It turns out that the Coordinates are being shifted BY the coordinates of the instances starting point.
The instances all start their path at -96 , 638.
And it would appear that instances on a path are actually having their starting point subtracted from their current position.
Update: It is in fact the Enemy objects that are being moved and not the paths themselves.
So at the moment Im working on a game that has multiple enemies with set paths in room 1.
They are currently set to persistent.
When I go to room 2, the paths are unaffected, but the instances are all moved.
The y being the biggest change which changes it to minus whatever its y was previously.
E.g In Room 1, the enemy.y = 320, after returning to Room1 from Room2, the enemy.y = -320
It seems to be only a problem with the Objects on Paths, as the other objects in Room1 which are also persistent, remain in their correct positions.
Any ideas and suggestions would be appreciated, I can post up code blocks if needed.
Thank you for looking !
Update: It seems it always shifts the y coordinate by -638...
Update: OKAY so It turns out that the Coordinates are being shifted BY the coordinates of the instances starting point.
The instances all start their path at -96 , 638.
And it would appear that instances on a path are actually having their starting point subtracted from their current position.
Update: It is in fact the Enemy objects that are being moved and not the paths themselves.
Last edited by a moderator: