Re: Enemies are out of the screen
I suppose you could fix it with a simple Lua script. If you have not modded and thus do not know how to attach Lua scripts to actors, then this will not make any sense to you, and you should make a request in the request subforum for it's implementation.
Code:
function Create(self)
self.sceneBox = Box(0, 0, SceneMan.SceneWidth, SceneMan.SceneHeight);
self.checkTimer = Timer();
end
function Update(self)
if self.checkTimer:IsPastSimMS(500) then
for actor in MovableMan.Actors do
if not self.sceneBox:WithinBoxX(actor.Pos) then
actor.Pos.X = Math.random(0, SceneMan.SceneWidth)
end
end
self.checkTimer:Reset()
end
end
I did not test this, but going by the Wiki it looks to be alright. There may be some errors, such as SceneMan may be SceneManager...
EDIT: Forgot to end Create().