I'm working on a solitaire game I have no idea about creating variables for saving movements.. How can I save the last movement for undo?
Please help, many thanks!!
I think an array would be an option. Every entry in the x axis is one step. and then you save tha card id, position etc stuff
thank you! i'll try
Develop games in your browser. Powerful, performant & highly capable.
i need to create an undo button for destroying the last sprite. can anyone help me ?