xIIV wrote:
How can I help?
Can you help with the code?
Okay now I've got:
glideSteps: t1 elapsed: t2 from: t3 self gotoX: (self xpos + (t1 * ((90 - heading) cos))) y: (self ypos + (t1 * ((90 - heading) sin))) elapsed: t2 from: t3.
I figured out you have to move the cos and sin to the end.
It says unknown variable heading.
Offline
Pecola1 wrote:
xIIV wrote:
How can I help?
Can you help with the code?
Okay now I've got:Code:
glideSteps: t1 elapsed: t2 from: t3 self gotoX: (self xpos + (t1 * ((90 - heading) cos))) y: (self ypos + (t1 * ((90 - heading) sin))) elapsed: t2 from: t3.I figured out you have to move the cos and sin to the end.
It says unknown variable heading.
Added heading to motion ops, it was under accessing.
Offline
I think I got it, needs to be tested,
glideSteps: t1 duration: t2 elapsed: t3 from: t4
self
gotoX: self xpos + (t1 * (90 - self heading) cos)
y: self ypos + (t1 * (90 - self heading) sin)
duration: t2
elapsed: t3
from: t4
Offline
Pecola1 wrote:
I think I got it, needs to be tested,
Code:
glideSteps: t1 duration: t2 elapsed: t3 from: t4 self gotoX: self xpos + (t1 * (90 - self heading) cos) y: self ypos + (t1 * (90 - self heading) sin) duration: t2 elapsed: t3 from: t4
So it is supposed to go to an X position? Is that correct?
Offline
I tried the block and an error came up: Message not understood: adaptToPoint:andSend:
Offline
xIIV wrote:
Pecola1 wrote:
I think I got it, needs to be tested,
Code:
glideSteps: t1 duration: t2 elapsed: t3 from: t4 self gotoX: self xpos + (t1 * (90 - self heading) cos) y: self ypos + (t1 * (90 - self heading) sin) duration: t2 elapsed: t3 from: t4So it is supposed to go to an X position? Is that correct?
I found out it is supposed to be a glide secs to x y elapsed from.
Offline
Any blocks I can make? I need to practice learning Squeak even more than I do now...
Offline
Now its
glideSteps: t1 duration: t2 elapsed: t3 from: t4
self
glideSecs: t2
toX: self xpos + (t1 * (90 - self heading) cos)
y: self ypos + (t1 * (90 - self heading) sin)
elapsed: t3
from: t4error= Message not understood: adaptToPoint:andSend:
Offline
ProgrammingFreak wrote:
Any blocks I can make? I need to practice learning Squeak even more than I do now...
![]()
go to the RKT wiki and look under To Do Blocks.
Offline
* (layer) what?
* (cursor) (no code yet) ??
* <visible> boolean block?
* (last received) k...?
* [glide ( ) steps in ( ) secs] (being worked on right now)
* [toggle draggable]
* <draggable?>
* <{draggable^} for {sprite}>
* [set rotation style to {normal^}] style?
* (rotation style) style?
* (rotation style #) ??
Offline
ProgrammingFreak wrote:
* (layer) what?
* (cursor) (no code yet) ??
* <visible> boolean block?
* (last received) k...?
* [glide ( ) steps in ( ) secs] (being worked on right now)
* [toggle draggable]
* <draggable?>
* <{draggable^} for {sprite}>
* [set rotation style to {normal^}] style?
* (rotation style) style?
* (rotation style #) ??
Most of those are in the block library. The cursor would report what cursor the user has (you know like the set cursor to block) Yes rotation style means leftRight, normal, or none. (left and right rotation only, rotate all the way around, and don't rotate.) Rotation style # has not been made, it is so the user can change1 rotation by 1. 1 would be normal 2 is left right, 3 is none. The visible is in the block library too, it reports false if 1) the sprite is hiding 2) if the sprites ghost effect is 0. Otherwise it reports true. Make sure that you remember where the code is or post it here so i can put it in. Or so after i am done with the IMG you can put it in.
Last edited by Pecola1 (2011-02-02 21:34:44)
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
* (layer) what?
* (cursor) (no code yet) ??
* <visible> boolean block?
* (last received) k...?
* [glide ( ) steps in ( ) secs] (being worked on right now)
* [toggle draggable]
* <draggable?>
* <{draggable^} for {sprite}>
* [set rotation style to {normal^}] style?
* (rotation style) style?
* (rotation style #) ??Most of those are in the block library. The cursor would report what cursor the user has (you know like the set cursor to block) Yes rotation style means leftRight, normal, or none. (left and right rotation only, rotate all the way around, and don't rotate.) Rotation style # has not been made, it is so the user can change1 rotation by 1. 1 would be normal 2 is left right, 3 is none. The visible is in the block library too, it reports false if 1) the sprite is hiding 2) if the sprites ghost effect is 0. Otherwise it reports true. Make sure that you remember where the code is or post it here so i can put it in. Or so after i am done with the IMG you can put it in.
Which one should I do right now?
Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
* (layer) what?
* (cursor) (no code yet) ??
* <visible> boolean block?
* (last received) k...?
* [glide ( ) steps in ( ) secs] (being worked on right now)
* [toggle draggable]
* <draggable?>
* <{draggable^} for {sprite}>
* [set rotation style to {normal^}] style?
* (rotation style) style?
* (rotation style #) ??Most of those are in the block library. The cursor would report what cursor the user has (you know like the set cursor to block) Yes rotation style means leftRight, normal, or none. (left and right rotation only, rotate all the way around, and don't rotate.) Rotation style # has not been made, it is so the user can change1 rotation by 1. 1 would be normal 2 is left right, 3 is none. The visible is in the block library too, it reports false if 1) the sprite is hiding 2) if the sprites ghost effect is 0. Otherwise it reports true. Make sure that you remember where the code is or post it here so i can put it in. Or so after i am done with the IMG you can put it in.
Which one should I do right now?
You can pick. I would say the ones that haven't been made yet ever are:
* (rotation style #)
* (cursor)
* any other you want to do
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
Pecola1 wrote:
Most of those are in the block library. The cursor would report what cursor the user has (you know like the set cursor to block) Yes rotation style means leftRight, normal, or none. (left and right rotation only, rotate all the way around, and don't rotate.) Rotation style # has not been made, it is so the user can change1 rotation by 1. 1 would be normal 2 is left right, 3 is none. The visible is in the block library too, it reports false if 1) the sprite is hiding 2) if the sprites ghost effect is 0. Otherwise it reports true. Make sure that you remember where the code is or post it here so i can put it in. Or so after i am done with the IMG you can put it in.Which one should I do right now?
You can pick. I would say the ones that haven't been made yet ever are:
* (rotation style #)
* (cursor)
* any other you want to do
Ok.
Btw, are we gonna do my 'alert' block?
Offline
ProgrammingFreak wrote:
Any blocks I can make? I need to practice learning Squeak even more than I do now...
![]()
You can go to http://scratch.mit.edu/forums/viewtopic … 73#p661673 for some help. A squeak smalltalk guide I am making.
Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
Which one should I do right now?
You can pick. I would say the ones that haven't been made yet ever are:
* (rotation style #)
* (cursor)
* any other you want to doOk.
Btw, are we gonna do my 'alert' block?
You mean 'alert %s' ? Sure.
Offline
alert: t1
DialogBoxMorph inform: t1 title: '?'Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
Which one should I do right now?You can pick. I would say the ones that haven't been made yet ever are:
* (rotation style #)
* (cursor)
* any other you want to doOk.
Btw, are we gonna do my 'alert' block?
Sorry I still don't get the rotation or cursor.
Offline
ProgrammingFreak wrote:
ProgrammingFreak wrote:
Pecola1 wrote:
You can pick. I would say the ones that haven't been made yet ever are:
* (rotation style #)
* (cursor)
* any other you want to doOk.
Btw, are we gonna do my 'alert' block?
Sorry I still don't get the rotation or cursor.
![]()
Rotation, you know those buttons by the sprites picture? It reports which one is pressed. The cursor is supposed to report what cursor you have e.g. normal, square, none, working... you know the set cursor to block? Well it would set to the cursor block to what the user does as the insert. It may take some coding.
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
ProgrammingFreak wrote:
Ok.Btw, are we gonna do my 'alert' block?
Sorry I still don't get the rotation or cursor.
![]()
Rotation, you know those buttons by the sprites picture? It reports which one is pressed. The cursor is supposed to report what cursor you have e.g. normal, square, none, working... you know the set cursor to block? Well it would set to the cursor block to what the user does as the insert. It may take some coding.
I'll do the rotation one for now
Offline
if you want the <showing?> block, try this: ('showing?' #b #isShowing) no more code.
Offline
scimonster wrote:
if you want the <showing?> block, try this: ('showing?' #b #isShowing) no more code.
We have showing, we need to make visible, I think I have the code though.
Offline
ssss wrote:
wow 11 pages. i leave pecola1 in charge (for now) I will be back
Okay.
Offline
You guys, heres a tip, if you have ever made BYOB blocks you can show me them and I might be able to convert them to squeak!
Offline