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

#1 2010-06-07 20:25:50

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

Scripting Help

Need scripting help? Just ask and I will do my best to make a script for you.

Thanks -Greentabby55

Offline

 

#2 2010-06-07 20:37:39

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Scripting Help

Ah, the fun begins.

Can you make a scrolling script for a platformer that implements an adjustable camera (WASD keys move the camera, arrow keys move player), a zoom function (able to zoom the camera to and away from the player while keeping everything aligned), and a player that has velocity, and and make it all 1s1s1c (one sprite, one script, one costume)?  You wanted a script, and this should all be one script.  Good luck  tongue

In case you didn't know, that was a joke.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2010-06-07 20:53:01

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

Re: Scripting Help

@keileymeister

Well, first if it's only going to be one sprite, you'll have to have it at an infinite loop. Basically, it will be the same thing over and over again.

Let's say the screen is 600 pixles wide, and 500 pixels high. If I want it to go across screen, I should make it about twice as wide, which won't fit the screen. I'll use proportions for that. I'll make the sprite 600x250 pixels. Now, I just set it to be twice as big when the game starts.

<when green flag clicked>
<set size to( 200 )%>

Now I just make it scroll across the screen.
(added on to the first part)

<forever>
<repeat until><( <x position> <=> -300 )>
<go to x sad  300 )y sad  0
<wait( 0.01 )secsc>
<go to x sad  300 )y sad  0
<end>
<end>

Boom, you got's yourself a script.

Offline

 

Board footer