Gio,
I am playing around with the iso plugin.
When I try to setup a player object, using a json file, it seems I am having a problem with the behaviors.
I keep getting "string" is not a function.
I have tried
"behaviors": "IsoCharacter",
"behaviors": "IsoCharacter()"
"behaviors": [ IsoCharacter ]
and various other permutations, but nothing seems to work.
If I can't set this via json, could you show me the snippet for doing so without json
i.e. (???)
foo = wade.iso.createObject(...)
foo.behaviors[IsoCharacter]
behavFoo = foo.getBehaviors()
On another minor note,when I setup an iso character in the game I am createing, it doesn't seem to be allowing the character to return to the original grid it was setup in. That is, the character is created at say 4,4. The character moves on a mouse click to another grid. If I try to click on 4,4 again, the character won't return to that grid. The get objects in cell call returns nothing, but the setDestination(4,4) always returns false ?
thanks,
Shri