1 decade ago by mtg101
I'm using an array of actions to control the monsters in my game. A vastly simplified version looks like:
I was hoping to be able to set the actions from Weltmeister by setting a name/value pair as an array:
However this just results with in action being set to the string '[{cmd: 'move', dir: 'left'}, {cmd: 'move', dir: 'up'}]'
So...
- does Weltmeister do array properties, and I'm just doing it wrong?
- does Weltmeister not do array properties so I'll have to use action1, action2, etc, properties?
- am I going about this in completely the wrong way?
Thanks in advance for any help.
actions: [{cmd: 'move', dir: 'left'}, {cmd: 'move', dir: 'up'}]
I was hoping to be able to set the actions from Weltmeister by setting a name/value pair as an array:
name: actions value: [{cmd: 'move', dir: 'left'}, {cmd: 'move', dir: 'up'}]
However this just results with in action being set to the string '[{cmd: 'move', dir: 'left'}, {cmd: 'move', dir: 'up'}]'
So...
- does Weltmeister do array properties, and I'm just doing it wrong?
- does Weltmeister not do array properties so I'll have to use action1, action2, etc, properties?
- am I going about this in completely the wrong way?
Thanks in advance for any help.