Page 1 of 1

Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 9:45 am
by DakotaSpine
The title pretty much says it all. Is there a possible way to make Generators shoot projectiles while off-screen? Because in most cases, if they are a few tiles away from you, they stop working. I am trying to make a switch block level that is set on a clock of shooting shells, but when I move a distance from it, the shells stop working. Pretty much shutting down the clock system.

So, if you just ignore everything else and boil it down, just the simple question. Can Generators work off-screen in any way?

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 9:49 am
by Magna
DakotaSpine wrote:So, if you just ignore everything else and boil it down, just the simple question. Can Generators work off-screen in any way?
No. (At least not underneath the screen.)

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 9:52 am
by Emral
NPCs despawn when they go offscreen, except for some exceptions like mother brain or yoshi. Generators are generally handled like NPCs. They simply don't exist when off-screen.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:00 am
by DakotaSpine
Dang. Is there any way anybody can thing of that could somehow make it work? Any workarounds?

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:03 am
by Magna
DakotaSpine wrote:Dang. Is there any way anybody can thing of that could somehow make it work? Any workarounds?
Let me guess, are you trying to make a hidden generator? If yes, there are several ways to do so. One of which is making the generator invisible.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:07 am
by DakotaSpine
Blue Greed wrote:
DakotaSpine wrote:Dang. Is there any way anybody can thing of that could somehow make it work? Any workarounds?
Let me guess, are you trying to make a hidden generator? If yes, there are several ways to do so. One of which is making the generator invisible.
Partially. I also, like I said in the OP, am making a timed Switch Block level. But the generator that shoots shells doesn't work when you are to far, and the blocks no longer switch.

Here's a Screenshot of what I mean: http://i.imgur.com/rMkQjkw.png

Those are Rainbow Shells from the Item row by the way.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:26 am
by Kyo
There are two outs to this. The first one is to place at least one generator per screen, which is tedious but it still works. The second one is to leave the generators out completely and implement this gimmick utilizing events. It's good that generators stop existing once they are off-screen, because otherwise SMBX would cause even more lag than it used to. SMBX is too weak to handle too many commands at once, which is why looping event sequences particularly cause lag because they continue working off-screen as well.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:35 am
by DakotaSpine
Kyo wrote:There are two outs to this. The first one is to place at least one generator per screen, which is tedious but it still works. The second one is to leave the generators out completely and implement this gimmick utilizing events. It's good that generators stop existing once they are off-screen, because otherwise SMBX would cause even more lag than it used to. SMBX is too weak to handle too many commands at once, which is why looping event sequences particularly cause lag because they continue working off-screen as well.
Alright, I will just make a generator per screen I guess.

I would suggest the option to make them work off-screen, but it isn't being worked on and updated anymore as far as I know.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:44 am
by Kyo
DakotaSpine wrote:
Kyo wrote:There are two outs to this. The first one is to place at least one generator per screen, which is tedious but it still works. The second one is to leave the generators out completely and implement this gimmick utilizing events. It's good that generators stop existing once they are off-screen, because otherwise SMBX would cause even more lag than it used to. SMBX is too weak to handle too many commands at once, which is why looping event sequences particularly cause lag because they continue working off-screen as well.
Alright, I will just make a generator per screen I guess.

I would suggest the option to make them work off-screen, but it isn't being worked on and updated anymore as far as I know.
It isn't, but there is still the SMBX module LunaDLL by leif_erikson which gives SMBX new features. There is one command that forced a npc to stack at a certain part of the screen. If that also applies for npc generators, then LunaDLL would have a third solution to your problem. Not sure if it does, though.

Re: Generators. Can they work off-screen?

Posted: Mon Jun 30, 2014 10:45 am
by DakotaSpine
Kyo wrote:
DakotaSpine wrote:
Kyo wrote:There are two outs to this. The first one is to place at least one generator per screen, which is tedious but it still works. The second one is to leave the generators out completely and implement this gimmick utilizing events. It's good that generators stop existing once they are off-screen, because otherwise SMBX would cause even more lag than it used to. SMBX is too weak to handle too many commands at once, which is why looping event sequences particularly cause lag because they continue working off-screen as well.
Alright, I will just make a generator per screen I guess.

I would suggest the option to make them work off-screen, but it isn't being worked on and updated anymore as far as I know.
It isn't, but there is still the SMBX module LunaDLL by leif_erikson which gives SMBX new features. There is one command that forced a npc to stack at a certain part of the screen. If that also applies for npc generators, then LunaDLL would have a third solution to your problem. Not sure if it does, though.
I could always ask I guess.

Thanks for the help everyone.