Pixel Game Maker MV

Pixel Game Maker MV

Loop Runtime Actions
A feature I really think could be helpful is the ability to loop runtime actions without changing the object's action state. At present, the only way to do anything similar is to force the object into a blank action and then unconditionally change it back, which I find to be taxing on the program.

To make an example of how I think this could be useful, you can have the object change a value gradually until it reaches a certain number, at which point it would switch to a different action.
< >
Showing 1-2 of 2 comments
Baz Jul 31, 2020 @ 11:58pm 
You can loop inside a runtime action via Execute Script:
return (function(){ var thisObject = Agtk.objectInstances.get(instanceId); var args = { moveDistance: 1 } thisObject.execCommandObjectMove(args); return Agtk.constants.actionCommands.commandBehavior.CommandBehaviorLoop; })()
By adding the return before the function starts and
'return Agtk.constants.actionCommands.commandBehavior.CommandBehaviorLoop;' at the end it will loop inside that action. If you have a particular scenario we might be able to come up with a script for you. There is also the documentation here for a specific runtime you may want to be looping: https://tkool.jp/act/en/manual/Plug-in_Spec_en_20200428.pdf
Last edited by Baz; Jul 31, 2020 @ 11:59pm
MizunoKetsuban Aug 1, 2020 @ 12:22pm 
Originally posted by baz:
If you have a particular scenario we might be able to come up with a script for you.
I essentially want an object's variable to increase by 1 at a continuous rate. Once that variable matches the value of another variable, it would then revert back to its default action through an action link.
< >
Showing 1-2 of 2 comments
Per page: 1530 50