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

#1 2008-04-25 19:18:21

mrbookie3
Scratcher
Registered: 2008-01-11
Posts: 8

Moving script, need help!

Can somebody please provide me with or tell me how to create a very high quality moving script like the one in archknight or archmage's "Perfect Sprite Movement" project?
Thank you.

Offline

 

#2 2008-04-25 19:29:06

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Moving script, need help!

OK:

[blocks]<when green flag clicked>[/blocks]
[blocks]<forever if><key[right arrow]pressed?>[/blocks]
[blocks]<change x by(5[/blocks]

And vice versa for Left arrow. You can experiment, but that is basically what I do


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-04-25 19:32:22

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Moving script, need help!

Download the project and check out the code. It users several sprites to sense the player sprite's surroundings.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-04-30 00:10:54

mrbookie3
Scratcher
Registered: 2008-01-11
Posts: 8

Re: Moving script, need help!

I'm sorry, I downloaded it, I still don't really get either one of those. Maybe somebody could please make a project that tells me how to make a script like the one in "Perfect Sprite Movement" and post a link here. If you do, I will love it and put nice comments on it. Thank you!

Offline

 

Board footer