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

#1 2011-06-22 14:43:41

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Circle? It's a maze

Okay guys, so I have this circle drawing project in my projects here and I'm having two problems with the scripting...

Firstly, I can't encorperate the x and y position for the circle in the script so it is always drawn at the centre of the stage. Secondly it flickers really badly, even in turbo mode, any idea why? I think it could be to do with the number of points that are drawn out...

Thanks for the help.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-06-22 14:52:25

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Circle? It's a maze

I can get it up to 20 radius without flicker offline turbo, but the Flash player takes so much more. I was thinking that maybe the solution here would be to follow the easy way: Move X steps, turn X degrees  smile

Offline

 

#3 2011-06-22 14:59:24

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Circle? It's a maze

Humm, eventually I want the circle to be "pokeable", sort of denting inwards if pushed with the mouse or another sprite, so I think a high rps will be needed to get that smooth. Or rather, a lot of coordinate points will be needed to create a nice "poke". Furthermore the sprite will need to know where it is being poked so the points need to be visited and checked quickly from a list anyway so that the circle can continue it's curve in areas it is not being touched. Maybe you're right though, I don't know much about this sort of rendering.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-06-22 17:34:52

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: Circle? It's a maze

Oh man, I read this as Circular Maze, something which I made a BYOB project to do.

Offline

 

Board footer