[SOLVED] Move actor in a list

Dax85

  • *
  • Posts: 97
Hello all!
I'm new here, just started Stencyl after years with Rpgmaker and Gamemaker, so sometimes i feel a bit confused and need a bit of help ;P

Im trying to make an isometric chess table and want to be able to modify every cell attribute through a 2D list of actors.
I made the grid successfully and filled it with last_created_actors (its in the attachment).
Sadly i didn't find a way using palette actions to refer and edit those actors in list. For example i just want to move an actor in position [2,1] or change its animation.

Thank you in advance for  the help =)

« Last Edit: November 05, 2013, 04:14:47 am by Dax85 »

gamegirlxl

  • Posts: 713
Since I have worked with 3D rotational grids, I can probably help.  This is less complicated, and actually similar to something I just did.  I've attached the file as a reference (ignore the blank event I didn't realize they'd both appear), although the grid in this example is not isometric.

If you look where in the list (named fogstatus) that I am looking, it uses the x and y values as text, in the "text + text" block.  You will need to use 2 (blue) attributes, and it's probably best to use the scene maker to set them.  So then you can think of it like a normal grid, like I do when my grid can be any sort of rotation.


I'd have to think a bit more before I fully have the solution, but this might help you somewhat.

Dax85

  • *
  • Posts: 97
Thank you for your answer =)
Your example helped me more, i kinda found my own solution using the code block like this:

Code: [Select]
_attributename[_row][_column].moveBy(69, -34, (1000 * 1), "linear");
Its very useful to know lists uses as index a text in fact =)

gamegirlxl

  • Posts: 713
Yes, you can use text or numbers for indexes.