How can I make a 4 part sprite (4 different sprites making 1) turn together so it looks natural?
Offline
joeyman wrote:
just make it so the arrows turn the sprites at the same rate
And than the guy loses his skateboard
Offline
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
Offline
Please help me
Offline
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.
Offline
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?
Offline
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.
Offline
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.
Offline
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)
Offline