I
icuurd12b42
Guest
Posted 26 May 2015 - 06:20 AM
TMC Script Batch
Outputs: All
Type: Scripts
Included: Scripts
Demo: None
Marketplace: https://marketplace....mc-script-batch
Description:
Defer Script Calls for Later!
TMC Script Batch allows you to batch a set of scripts from anywhere in your game to be performed later.
One major hurdle in game maker is to have an object do multiple things at different times, have an effect on multiple parts of your game.
Such hurdle for example is to have 2 rendering modes, like say you have a light that draws a lightbulb in the room but also needs to draw a light pattern on a surface... The conventional method is to draw the bulb, switch the rendering mode to bm_add and set the draw target to a surface and draw you light pattern on the surface...
Another hurdle is drawing shadows on the ground for a character, but the character is at a higher depth than the ground and other things have been drawn already... and you can't draw under the other stuff...
With this system you can batch script calls into a script container and perform the calls at a later time from another object!
For example, a character renders itself in the draw on screen, but can add scripts to a batch directly from the end step to tell the ground to draw its shadow when the ground draws.
Another hurdle is texture swaps and draw batches on android; having things render with bm_add, then bm_normal, having to change the texture for a render... with this system you can batch the draw calls yourself. Have a script batch for bm_add mode, setting the mode ounce and performing all the scripts in one go,
Features
Only 2 batchable scripts are provided Please suggest or post your additions below. Mind you it would be senseless to bloat the assets with batchable scripts since they are easy to make.
TMC Script Batch
Outputs: All
Type: Scripts
Included: Scripts
Demo: None
Marketplace: https://marketplace....mc-script-batch
Description:
Defer Script Calls for Later!
TMC Script Batch allows you to batch a set of scripts from anywhere in your game to be performed later.
One major hurdle in game maker is to have an object do multiple things at different times, have an effect on multiple parts of your game.
Such hurdle for example is to have 2 rendering modes, like say you have a light that draws a lightbulb in the room but also needs to draw a light pattern on a surface... The conventional method is to draw the bulb, switch the rendering mode to bm_add and set the draw target to a surface and draw you light pattern on the surface...
Another hurdle is drawing shadows on the ground for a character, but the character is at a higher depth than the ground and other things have been drawn already... and you can't draw under the other stuff...
With this system you can batch script calls into a script container and perform the calls at a later time from another object!
For example, a character renders itself in the draw on screen, but can add scripts to a batch directly from the end step to tell the ground to draw its shadow when the ground draws.
Another hurdle is texture swaps and draw batches on android; having things render with bm_add, then bm_normal, having to change the texture for a render... with this system you can batch the draw calls yourself. Have a script batch for bm_add mode, setting the mode ounce and performing all the scripts in one go,
Features
- Create multiple independent script batches
- Run the batch at any time and in any event you want
- API similar to the ds_list
- Use it to batch your rendering
- Use it to perform actions on multiple parts of the game from one location
Only 2 batchable scripts are provided Please suggest or post your additions below. Mind you it would be senseless to bloat the assets with batchable scripts since they are easy to make.
Last edited by a moderator: