I have a few related questions. I'm building a checkers-like board game. I've set the layout size to the size of the board. I've used a couple events to create the starting positions. I've given the pieces the "bound-to-layout" behavior.
A couple problems I'm having:
1) The initial piece objects are appearing on the board. These are the objects that I put onto the layout. (Question here: Why do I need to drag "initial" objects here at all? Why can't I just create them dynamically within the events code?)
I tried to simply destroy them by targeting their UID's, but it seems their UID wasn't 0 for some reason... (Pieces created with my events were being destroyed instead). So I'm not sure how/when/why these "initial" pieces are created.
I don't want to manually place the pieces on the board as their locations may differ depending on number of players and whatnot.
2) A solution I'd thought would work, and it kinda did, was to give the pieces a "destroy-outside-layout" behavior. While this worked for getting rid of the initial pieces, it had an unfortunate side-effect. WithOUT "D-O-L" behavior, players couldn't move their pieces outside of the layout, regardless of their cursor. (Because of the "bound-to-layout" behavior) However, with "D-O-L" enabled, if the player moved his cursor far enough outside of the bounds of the board while dragging a piece, the piece would be destroyed. As this wasn't acceptable, I couldn't use this "solution".
3) Last question I guess: What's the difference between "create an object" and "spawn an object"?
Thanks!