You might have seen with my projects that I don't use a range. Please can someone tell me what they do.
Offline
The Pen does what you would expect, it leaves a line behind sprites the same way as if you put a pen on paper and moved it. The Pen Up and Pen Down blocks toggle whether or not you are drawing with the pen, and clear makes all pen marks go away.
Example: Let's say you have a sprite on the left of the screen. You use the Pen Down block. Then you move the sprite to the right of the screen. There will now be a line from where the sprite started to where it is now. Like so:
Sensing is the section you use when sprites interact with other sprites. Here sprites detect if they are touching other sprites, use aspects of other sprites (like their direction or position), or generally need to react based on what other sprites are doing.
For example, you use these blocks to check if you are touching another sprite.
Operators is the section you use when you need to calculate things or perform functions.
Using blocks like ([ ] + [ ]) let you add (the two empty spaces are so you can write out a math problem like 5 + 5) and so on and so forth.
Variables are values (or numbers) that can change freely. When you create a variable, it comes assigned to a number (by default it starts as 0). Let's say that you create a variable named Variable1 and set it to 5. From now on, you can say that Variable1 = 5. Let's say you want a sprite to move at 5 blocks per frame. Instead of [move (5) steps], you can now say [move (Variable1) steps] because Variable1 and 5 are interchangeable. But let's say you want that speed to change during the project! For that, you can change the variable. Say you now want the sprite to move at 10 pixels per frame. Just set Variable1 to 10. Now [move (Variable1) steps] is interchangeable with [move (10) steps]. The use of this is that you can change the variable while the project is running instead of stopping the project and manually changing the number.
That may be a bit confusing, I'll write some more examples in a sec.
Last edited by Kileymeister (2012-12-28 13:32:18)
Offline
thank you but it is very confusing. Plz give me more examples. thank you.
Offline
ManUguy2001 wrote:
thank you but it is very confusing. Plz give me more examples. thank you.
Its not that confusing!!!!! Keep scratching and yuo'll learn it
Offline
Aditya007 wrote:
ManUguy2001 wrote:
thank you but it is very confusing. Plz give me more examples. thank you.
Its not that confusing!!!!! Keep scratching and yuo'll learn it
Actually, the whole concept of variables and computer-math can be a tough one to wrap your mind around. I'm glad you found it pretty straightforward
Offline
ok I will try thank you aditya. I like your quote from Dr seuss
Offline
Thank you. I like to put inspirational quotes in my signature. I found a whole slew of them by Dr. Seuess that will probably last me a while
To the people of the future who won't know what we're talking about, my sig says this:
“You're off to Great Places! Today is your day! Your mountain is waiting, So... get on your way!” - Dr. Seuss
Offline
This is a example of what you can do with pen. Try it!
when gf clicked clear go to x: [0] y: [0] set color effect to [0] forever glide [1] secs to x: [pick random [-240] to [240] y: [pick random [-180] to [180] stamp change color effect by 10Enjoy!
Offline
Thanks Dyllio. I will try it.
Offline
Dyllio wrote:
This is a example of what you can do with pen. Try it!
when gf clicked go to x: (0) y: (0) set pen color to (0) clear pen down forever go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)) change pen color by (10)Enjoy!
Fixed an improved your script.
Offline
what is it supposed to do. Just in case I get it wrong
Offline
ManUguy2001 wrote:
what is it supposed to do. Just in case I get it wrong
From what I can tell, that script will create a bunch of colorful lines across the stage.
Offline
Kileymeister wrote:
ManUguy2001 wrote:
what is it supposed to do. Just in case I get it wrong
From what I can tell, that script will create a bunch of colorful lines across the stage.
Yes.
Offline
ManUguy2001 wrote:
You might have seen with my projects that I don't use a range. Please can someone tell me what they do.
Pen allows you to draw lines(which is useful for making things like a paint application). Sensing allows for basically sensors. It can sense the colour an object is touching, to objects touching each other, operators are for logic operations like adding and subtracting and putting 2 strings(words) together, variables is the word given to a memory location for a certain quantity or information or a value. For example you may want to make the X-coord of you sprite and double it and save it as a variable to be accessed later. Hope this helped!
Offline
Thanks again to everyone who posted. I will now try out all of them
Offline