Im trying to remake the original super mario bros on scratch. sence its one way scrolling. If i made the ememys stop scripts if far from the player to reduce lag. Is this possible?
Offline
you could have something like:
forever
IF scrollx of ENEMY < scrollx of PLAYER - 150:
hide
stop script
IF scrollx of ENEMY > scrollx of PLAYER + 150:
hide
ElSE show
The 'stop script' part is to prevent lag. If you wanted to be really efficient, you count only have 1 sprite and keep reusing it.
Hope this helps
Offline
Johndl wrote:
you could have something like:
forever
IF scrollx of ENEMY < scrollx of PLAYER - 150:
hide
stop script
IF scrollx of ENEMY > scrollx of PLAYER + 150:
hide
ElSE show
The 'stop script' part is to prevent lag. If you wanted to be really efficient, you count only have 1 sprite and keep reusing it.
Hope this helps
Thanks. Now to start working on it.
Offline