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

#1 2010-09-25 11:32:28

dudesonface
New Scratcher
Registered: 2010-09-17
Posts: 6

drawing project - inefficient periodic events ?

im working on a drawing project as university assignment

so far its all going well but i have this periodic event that basically is triggered nonstop.
it tries to recall wether the mouse is being pressed or not constantly. obviously really really inefficient right? i feel the trigger stresses the program and slows it down horribly making drawing circles require sooo much patience. is there a more efficient way? there has to be ... enlighten me plz

any input appreciated

Offline

 

#2 2010-09-25 11:57:30

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

Re: drawing project - inefficient periodic events ?

One forever-if loop shouldn't slow the project significantly... Do you have a lot of these infinite loops? The lag could also be caused by a lot of broadcasts or spites (say in excess of 50 sprites) or just inefficient scripts.


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

 

#3 2010-09-25 15:31:00

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: drawing project - inefficient periodic events ?

Pens are circular, so you could draw a circle by increasing pen size.

Sadly, it has to have a fill...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#4 2010-09-25 19:32:58

kwickgamer
Scratcher
Registered: 2010-07-13
Posts: 42

Re: drawing project - inefficient periodic events ?

you could get rid of the fill in a circle simply by when you press a cirtain key, it sets the pen color to black, then the size to say: 50, then puts the pen down and then sets the size to 30, and colors the pen white, then puts the pen up.


Kwickgamer Classic Collection! What is it? find out here!

Offline

 

Board footer