Creating Undo
Hi All,
I'm using some line drawing code which spawns segments to form the line. I want to have an undo button which will allow the user to undo (destroy) the last 10 segments. I'm thinking if I could somehow tag each segment with an ID, maybe I could then somehow track those in a table and then destroy the segment with the last/highest ID in turn. I'm brand new to GameSalad though so not quite sure how I go about this.
Any advice would be appreciated.
Thanks!
I'm using some line drawing code which spawns segments to form the line. I want to have an undo button which will allow the user to undo (destroy) the last 10 segments. I'm thinking if I could somehow tag each segment with an ID, maybe I could then somehow track those in a table and then destroy the segment with the last/highest ID in turn. I'm brand new to GameSalad though so not quite sure how I go about this.
Any advice would be appreciated.
Thanks!