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

#251 2011-02-02 21:06:29

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#252 2011-02-02 21:07:53

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#253 2011-02-02 21:10:42

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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

If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#254 2011-02-02 21:11:57

xIIV
New Scratcher
Registered: 2010-12-04
Posts: 72

Re: RKT Development thread!

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?


Helping helps others to help you.  wink

Offline

 

#255 2011-02-02 21:12:43

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

I tried the block and an error came up: Message not understood: adaptToPoint:andSend:


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#256 2011-02-02 21:15:36

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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: t4

So 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.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#257 2011-02-02 21:19:26

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

Any blocks I can make? I need to practice learning Squeak even more than I do now...  tongue

Offline

 

#258 2011-02-02 21:19:34

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

Now its

Code:

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: t4

error= Message not understood: adaptToPoint:andSend:


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#259 2011-02-02 21:21:55

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

ProgrammingFreak wrote:

Any blocks I can make? I need to practice learning Squeak even more than I do now...  tongue

go to the RKT wiki and look under To Do Blocks.  big_smile


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#260 2011-02-02 21:24:36

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

* (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

 

#261 2011-02-02 21:33:23

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#262 2011-02-02 21:36:03

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

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

 

#263 2011-02-02 21:41:27

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#264 2011-02-02 21:42:21

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

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.  smile  Btw, are we gonna do my 'alert' block?

Offline

 

#265 2011-02-02 21:43:15

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

ProgrammingFreak wrote:

Any blocks I can make? I need to practice learning Squeak even more than I do now...  tongue

You can go to http://scratch.mit.edu/forums/viewtopic … 73#p661673 for some help. A squeak smalltalk guide I am making.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#266 2011-02-02 21:44:19

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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 do

Ok.  smile  Btw, are we gonna do my 'alert' block?

You mean 'alert %s' ? Sure.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#267 2011-02-02 21:46:01

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

Code:

alert: t1 
    DialogBoxMorph inform: t1 title: '?'

Offline

 

#268 2011-02-02 21:47:58

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

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 do

Ok.  smile  Btw, are we gonna do my 'alert' block?

Sorry I still don't get the rotation or cursor.  sad

Offline

 

#269 2011-02-02 21:53:42

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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 do

Ok.  smile  Btw, are we gonna do my 'alert' block?

Sorry I still don't get the rotation or cursor.  sad

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.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#270 2011-02-02 21:55:18

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: RKT Development thread!

Pecola1 wrote:

ProgrammingFreak wrote:

ProgrammingFreak wrote:


Ok.  smile  Btw, are we gonna do my 'alert' block?

Sorry I still don't get the rotation or cursor.  sad

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  tongue

Offline

 

#271 2011-02-03 01:08:25

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: RKT Development thread!

if you want the <showing?> block, try this: ('showing?' #b #isShowing) no more code.

Offline

 

#272 2011-02-03 03:47:23

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: RKT Development thread!

wow 11 pages.  i leave pecola1 in charge (for now) I will be back


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#273 2011-02-03 18:56:23

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#274 2011-02-04 10:39:14

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

ssss wrote:

wow 11 pages.  i leave pecola1 in charge (for now) I will be back

Okay.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#275 2011-02-04 10:40:23

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: RKT Development thread!

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!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer