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

#1 2008-07-06 13:45:43

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

Turning together

How can I make a 4 part sprite (4 different sprites making 1) turn together so it looks natural?


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

 

#2 2008-07-06 13:47:24

joeyman
Scratcher
Registered: 2008-03-28
Posts: 1000+

Re: Turning together

just make it so the arrows turn the sprites at the same rate


Joeyman: On Scratch since March 28, 2008.
Over 142 projects! (And recently a Brony, and PROUD of it!)

Offline

 

#3 2008-07-06 13:50:11

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

Re: Turning together

joeyman wrote:

just make it so the arrows turn the sprites at the same rate

And than the guy loses his skateboard


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

 

#4 2008-07-06 13:55:19

joeyman
Scratcher
Registered: 2008-03-28
Posts: 1000+

Re: Turning together

Oh, it's a skateboard game... hm... can you make the skateboard move too?


Joeyman: On Scratch since March 28, 2008.
Over 142 projects! (And recently a Brony, and PROUD of it!)

Offline

 

#5 2008-07-06 13:56:33

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

Re: Turning together

joeyman wrote:

Oh, it's a skateboard game... hm... can you make the skateboard move too?

Everything revolves around the skateboard. I need it so you can go up half-pipes and stuff and everything turns together because you edit your character  wink


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

 

#6 2008-07-06 16:12:22

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

Re: Turning together

Please help me


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

 

#7 2008-07-06 16:42:49

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Turning together

You could still do it by locating all the rotation centers at the same point.  The rotation center does not have to be inside the sprite.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#8 2008-07-06 16:43:41

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

Re: Turning together

Paddle2See wrote:

You could still do it by locating all the rotation centers at the same point.  The rotation center does not have to be inside the sprite.

You mean not basing the rotating off of the skateboard? Never thoguht of that. I get it, but do you have like a basic script that I can see?


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

 

#9 2008-07-06 20:13:19

newareagle
Scratcher
Registered: 2008-06-10
Posts: 100+

Re: Turning together

Make the center of the skateboard a center point, and then make the center of the skater a little below the feet. That way when the guy turns he turns around the skateboard. Also make it so the skater always goes to the board unless you fall or something.


My Guitar Hero Game.
8/9 Projects on the Front Page at Once!

Offline

 

#10 2008-07-09 13:04:17

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Turning together

you can do it using sin/cos to work out how far the other parts need to move to simulate rotation around a point.  See my "planet stacker" game for examples.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#11 2008-07-10 01:36:23

ashbyr1
Scratcher
Registered: 2007-12-04
Posts: 100+

Re: Turning together

Take a look at this. http://scratch.mit.edu/projects/ashbyr1/210353
Using the keyboard keys and the on-screen buttons, you can move the skater and rotate him at the same time.

If you change the skater sprite, you'll want to play with the center of rotation on your character to make sure it is at the character's center of gravity.

The dotted line and circle over the skateboard are simply for a reference point and can be erased without changing the center of rotation.

If you have any questions, please let me know.

Last edited by ashbyr1 (2008-07-10 01:42:28)


Learn the basics with these video tutorials.
Or nominate an All Star Animation.

Offline

 

Board footer