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

#1 2010-08-08 16:15:29

Darkchocolate
Scratcher
Registered: 2009-07-21
Posts: 38

Work Around The Infamous Hold

Can you work around somebody winning a button masher type game (In which you try to win by rapidly push a button to do something) by just holding the button?  I also don't want to make it so you rapid-click a sprite too... I think I've seen a game that works around the glitch, so tell me if its possible and how please  smile

Last edited by Darkchocolate (2010-08-08 16:17:08)


Bye!

Offline

 

#2 2010-08-08 16:24:49

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Work Around The Infamous Hold

Something like this...

When I receive [Start game]:
       repeat until <(clicks)=(number of clicks to win)>:
               if < mouse down? >:
                       change [clicks] by 1
                       wait until <not<mouse down?> >   <------ This is the part that prevents holding
       say {You win!}


Does that help?

Last edited by scmb1 (2010-08-08 16:25:07)


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2010-08-08 16:38:45

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Work Around The Infamous Hold

Here's a picture of what scmb1 said:
http://i33.tinypic.com/auxq46.jpg


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#4 2010-08-08 16:51:20

Darkchocolate
Scratcher
Registered: 2009-07-21
Posts: 38

Re: Work Around The Infamous Hold

YOU'VE SAVED ME!!! Thanks so much!


Bye!

Offline

 

Board footer