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

#1 2010-07-13 12:58:57

awesome12
Scratcher
Registered: 2010-04-19
Posts: 12

Complicated script needed! (may need trigonomotry and algebra)

I need a way to make something that is going in one direction and its speed into the speed of the x and the speed of the y. Help please!


BlueFire... the best arena shooting game since "bubble tanks".

Offline

 

#2 2010-07-13 13:02:19

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Complicated script needed! (may need trigonomotry and algebra)

Hmm... I'm not too sure what you mean... Have you seen something like what you want to make (this could be a Scratch project, a game on another site... or something else)? That might help me to visualise it  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-07-13 14:28:08

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Complicated script needed! (may need trigonomotry and algebra)

So you need "Point in direction ( )" combined with "Move ( ) steps" translated into "Change x by ( )" and "Change y by ( )"?

If so, then use this script:

http://i25.tinypic.com/aceooi.gif

Angle is the angle the sprite would have been facing in, and distance is how many steps it would have taken. (You don't have to use variables; you can just enter in the numbers.)

Last edited by Harakou (2010-07-13 14:58:38)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-07-13 15:11:41

m44
Scratcher
Registered: 2008-02-04
Posts: 500+

Re: Complicated script needed! (may need trigonomotry and algebra)

look at this
http://scratch.mit.edu/projects/archmage/52485

Last edited by m44 (2010-07-13 15:12:06)


METAL SLUG is out!!! (here) and M44's BESTShttp://img708.imageshack.us/img708/6673/msbanner.jpg

Offline

 

Board footer