Unless he meant "glide those many steps X and those many steps Y", which would need an even uglier script.
Last edited by Hardmath123 (2012-11-18 20:01:15)
Offline
Hardmath123 wrote:
Unless he meant "glide those many steps X and those many steps Y", which would need an even uglier script.
Nah, it's not too bad:
…unless you meant this:glidesecs to x:/sqrt ▼of+x*xy*yspeedy:x position+xy position+y
…or this:glidesecs to x:/abs ▼ofx position-xspeedxy:y positionglidesecs to x:/abs ▼ofy position-yspeedx positiony:y
glidesecs to x:/abs ▼ofy position-yspeedx positiony:yglidesecs to x:/abs ▼ofx position-xspeedxy:y position
Last edited by nXIII (2012-11-18 21:37:59)
Offline
DigiTechs wrote:
mythbusteranimator wrote:
sounds fun
I just finished it.
I'm not uploading it though >:3 you'll have to do it yourself EHEHEH
You write it in Squeak?
Offline
mythbusteranimator wrote:
DigiTechs wrote:
mythbusteranimator wrote:
sounds fun
I just finished it.
I'm not uploading it though >:3 you'll have to do it yourself EHEHEHYou write it in Squeak?
Maaaaabye.. Yeah I did. The block name is "Download all blocks in the Block Libary"
Offline
DigiTechs wrote:
mythbusteranimator wrote:
DigiTechs wrote:
I just finished it.
I'm not uploading it though >:3 you'll have to do it yourself EHEHEHYou write it in Squeak?
Maaaaabye.. Yeah I did. The block name is "Download all blocks in the Block Libary"
It's a block?
Offline
mythbusteranimator wrote:
DigiTechs wrote:
mythbusteranimator wrote:
You write it in Squeak?Maaaaabye.. Yeah I did. The block name is "Download all blocks in the Block Libary"
It's a block?
Yeah.
It's a pretty funny block.
Offline
i have a block to submit. its a make 3D block.
the code is
blockspec:
('make 3D %n times' #- #mk3d:)
code:
mk3d: i1 | t1 | i1 timesRepeat: [ self gotoX: self xpos y: (2+ self ypos). self stampCostume. ].
Offline
http://www.weebly.com/uploads/5/4/1/3/5413503/288022878.gifdie
Offline
danwoodski wrote:
elfin8er wrote:
Would it be possible to do Import Panther Project From File block, or Import Panther Project From Web block?
I think that a block NXIII made does something similar to what you want. It's somewhere on this thread...
EDIT: http://scratch.mit.edu/forums/viewtopic.php?pid=1046802#p1046802
The update from version block, near the bottom. It checks a text file to see if a new version is available, then downloads the new file (also specified in the text file, I think) from the web, and replaces the original file with the new one.
lol, I know it's been a while, but how would I use that to import the project into the existing project, instead of over-writing it?
Offline
Hi i have a request please?
There is a scratch block which is 'play from <> to <> of sound <>'
Block Spec: ('play from %n to %n secs of %S' #- #playFrom:to:ofSound:)
Code: lengthOfSound: t1
| t2 |
t2 _ self soundNamed: t1 ifAbsent: [^ 0].
^ t2 totalSeconds
Any chance this could become a downloadable BYOB block please?
also how would i know if this becomes avaliable? thanks!
Offline
I have a block to submit, If you've used Lua you may understand it, if not, I'll provide a handy link to a page to explain what it means. Here it is!
Anyway here's the block! It's name is string.gsub and it's purpose is to find a substring in a string and if it matches the 2nd input then replace it with the third.
BLOCK LOOKS: HERE
CODE: HERE
BLOCK'S OUTPUT: HERE
BLOCK DOWNLOAD: HERE
EDIT: Oops. I did somthing wrong. Fixed!
Last edited by DigiTechs (2012-12-15 06:04:04)
Offline
you can improve the factorial block:
factorial: t1 ^ t1 factorial
Last edited by Interest (2013-01-21 23:36:32)
Offline
DigiTechs wrote:
nickliboo wrote:
Request: Quit panther
For: Pantherquit pantherThat's easy:
Code:
Smalltalk snapshot: false andQuit: true
Ah, yes, but that's force quit. Maybe you want to have it quit with a dialog prompting to save? Basically, giving the same effect as selecting Quit from the menu. In that case use
ScratchFrameMorph quitFromMenu
Offline
dreamod wrote:
DigiTechs wrote:
nickliboo wrote:
Request: Quit panther
For: Pantherquit pantherThat's easy:
Code:
Smalltalk snapshot: false andQuit: trueAh, yes, but that's force quit. Maybe you want to have it quit with a dialog prompting to save? Basically, giving the same effect as selecting Quit from the menu. In that case use
Code:
ScratchFrameMorph quitFromMenu
Meh, the way it looked, it only looked like he/she wanted to force quit the Squeak VM.
Offline