This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-04 22:33:43

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Undo feature

Is it possible to do an undo feature for the pen?

Offline

 

#2 2012-05-04 22:37:53

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Undo feature

No, but you could make a suggetion for it, and im a bit confused by this "undo feature" anyway.

Offline

 

#3 2012-05-04 23:38:12

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Undo feature

Could you specify in more detail what you require help with?


http://trinary.tk/images/signature_.php

Offline

 

#4 2012-05-05 00:49:45

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

How to suggest?

Offline

 

#5 2012-05-05 08:13:29

TheCoolDog
Scratcher
Registered: 2011-01-29
Posts: 18

Re: Undo feature

it's kinda possible, you record all the points when the pen is drawn and then you retrace them points with a white pen(rubber).

Last edited by TheCoolDog (2012-05-05 08:14:07)


-TheCoolDog-

Offline

 

#6 2012-05-05 23:28:33

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

Can you write the script down for me please?

Offline

 

#7 2012-05-11 21:27:09

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

TheCoolDog, how?

Offline

 

#8 2012-05-11 21:33:46

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Undo feature

It's possible with lists.


http://trinary.tk/images/signature_.php

Offline

 

#9 2012-05-14 07:40:12

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

Can you show me the script?

Offline

 

#10 2012-05-14 08:22:31

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Undo feature

SamWang wrote:

Can you show me the script?

I made a project about this quite some time ago. Check out the scripts.  smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2012-05-16 08:05:50

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

That's awesome! However, I've still hasn't told me the undo feature code yet.

Offline

 

#12 2012-05-18 08:38:16

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

I'm not going to  do a replay mouse movement feature, but a undo one.

Offline

 

#13 2012-05-18 13:04:30

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Undo feature

try:

set pen color to [#F7F5F6]
set [number v] to (length of list [x v]) // or list y.
go to x: (item (number) of list [x v] y: (item (number) of list [y v]
change [number] by [-1]
 


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#14 2012-05-19 02:32:35

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

It doesn't work! Was it that I got the "go to x:" bit wrong? There's nothing of that, so I did

set x to (x,y)
instead.

Offline

 

#15 2012-05-25 21:38:14

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

Hello?

Offline

 

#16 2012-05-25 21:44:24

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Undo feature

mythbusteranimator wrote:

try:

set pen color to [#F7F5F6]
set [number v] to (length of list [x v]) // or list y.
go to x: (item (number) of list [x v]) y: (item (number) of list [y v])
change [number] by [-1]
 

Fixed it  smile


Get ready for domination of:  tongue

Offline

 

#17 2012-05-28 08:28:15

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

I will try...

Offline

 

#18 2012-05-28 08:32:44

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Undo feature

It's not quite working!

Offline

 

#19 2012-05-28 12:01:45

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Undo feature

I do not believe there is an undo feature for the pen, but it would be a great suggestion in the suggestions forums! Anyway, you should just modify some of the scripts of a replay engine here. It can replay backwards, if you can figure out that script, and how it records movement and then plays it in reverse, you may just be able to do it.


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer