Tag Archive | Simple

How to crash Scratch

You can crash Scratch 1.4 really easily. It can be done by cracking Scratch and adding a custom block, but for technologically challenged people there is this cheap easy method.

Read More…

How to make a controllable character in Scratch 1.4

NOTE: Trouble finding a block? Scratch blocks are color coded. If you go to the top left of the Scratch Window, you will see colored tabs. The color of the block matches the color of the tab.

If you plan to make a video game, you are going to need a controllable object.1

Yes, without it, one might call it an “Animation”.2

So today, I will teach you how to make a character in Scratch 1.4.

3

Yes.

Read More…

Sending Messages Between Objects in Unity3D

Something you have to do a lot in games is have to objects communicate with each other. In Scratch, you just have to use the Your message here block. However, in Unity 3DIt’s not as obvious. That was a bit of a problem for me, so I looked around in the coding reference until I found this function.

/*What you need are two objects, each with
their own JavaScript
I used a sphere and a cube.
*/
//In the sphere's JavaScript:
SendMessage ("YourMessageHere", 2);

//In the cube's JavaScriptfunction YourMessageHere (rotation : float)
  transform.Rotate(0, 0, rotation);
}

Let’s depict this method like a schoolroom. Your bud Arnold sends you a paper airplane with the words “YourMessageHere, 2”. You and Arnold just happen to have a secret code in case the school bully intercepts these messages, and the word YourMessageHere just happens to mean “Spin around in a circle, attracting attention while I put the class pet that I found in the waste bin back on teacher’s desk”.

You however, have no clue what speed or direction to spin at. You look back at your comrade’s message and see the number 2.

Ah! your supposed to spin on the Y axis at the speed of two.

Now, that scenario is very ridiculous, and you would probably end up in detention writing lines, but at least your class pet, Chester the Rabbit, would get back to his owner.Bunny

On a shorter, and a lot less juvenile approach, it basically tells anyone who’s listening to do something.

Hope this helps you! Smile

Using Gravity In Scratch 1.4 – Simple

Scratch 1.4 doesn’t have a gravity engine built in, which is great in some situations (games like Pac-Man), and not-so-great in others. Imagine Super Mario Galaxy without gravity! You’d jump and keep floating. Forever. A lot of people know when they NEED gravity, but not how to put it in their games. Well, here you are then. Let’s learn how to use gravity!

Read More…