Energy Engine
Member
I'm trying to redo my AI system, but have run into an issue.
I'm using timelines which contain a set of actions that the AI object will perform. Once the timelines resources are added to the list, I can use an alarm or a switch variable along with :
to run the set of actions.
This works, but unfortunately, timeline resources are not compatible with @YellowAfterlife 's GMLive extension (which is a must).
I then tried using scripts instead but these don't appear to be working correctly with the ds_list functions. For example, if I do:
create:
Then on a key press event:
The initial scripts will run (though this can be bypassed) and upon key press, the game simply exits.
Am I doing something wrong here or will script resources not work with ds_list functions (both index and value have the same problem)?
Thanks!
I'm using timelines which contain a set of actions that the AI object will perform. Once the timelines resources are added to the list, I can use an alarm or a switch variable along with :
Code:
timeline_index=ds_list_find_value(ai_tml_list_move,0)
timeline_position=0;
timeline_running=1;
This works, but unfortunately, timeline resources are not compatible with @YellowAfterlife 's GMLive extension (which is a must).
I then tried using scripts instead but these don't appear to be working correctly with the ds_list functions. For example, if I do:
create:
Code:
ds_list_add(ai_list_off_stand_spc,
scr_debug_msg("A"),
scr_debug_msg("B")
)
Code:
script_execute(ds_list_find_value(ai_list_off_stand_spc,0))
Am I doing something wrong here or will script resources not work with ds_list functions (both index and value have the same problem)?
Thanks!
Last edited: