How do I make an undo/redo system

Get help using Construct 2

Post » Mon Dec 15, 2014 10:39 am

Hi,
I'm on a project that makes a drawing page (something like Paint).
I want to have an option to undo/redo last iterations.
How can I do an Ctrl+z system for more the last move?
I can use the load/save events to undo the last iteration, but how can I go more deep?
Lets say that pressing 10 times the Ctrl+z combination will bring back the drawing area 10 steps backwards?

TNX
B
5
S
1
Posts: 31
Reputation: 431

Post » Mon Dec 15, 2014 10:44 am

I haven't used it but you could look into this
https://www.scirra.com/forum/viewtopic.php?t=77130&start=0
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Dec 15, 2014 10:51 am

Hi @codah
I'll give it a try, thnx!!!
Any other ideas?
B
5
S
1
Posts: 31
Reputation: 431

Post » Mon Dec 15, 2014 12:32 pm

Nope I haven't implemented undo myself but I will need to and that's the first thing I'll look at.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: worm1 and 18 guests