Discuss Scratch

beano1207
New Scratcher
2 posts

How to rotate a sprite without changing direction

Hi,
How do I rotate a sprite, but not changing the direction that the sprite moves in.
Any help would be appreciated. Thanks
cs3624959
Scratcher
29 posts

How to rotate a sprite without changing direction

whenclickedbroadcastexplain to this guy that that's not possiblebroadcasttell him he should use thechangexbybroadcastblock or thechangeybybroadcastblock instead of themovestepsbroadcastblock.

Last edited by cs3624959 (Oct. 7, 2019 21:29:49)

cs3624959
Scratcher
29 posts

How to rotate a sprite without changing direction

also, to actually answer your question,

no that nots possible.
you can, however use the other at your disposal to make that possible
so maybe try to fix a problem yourself instead of asking everyone a silly question.
---Flippy---
Scratcher
100+ posts

How to rotate a sprite without changing direction

As said, i'm pretty sure this isn't possible.
ConfusedBiscuit
Scratcher
1000+ posts

How to rotate a sprite without changing direction

cs3624959 wrote:

so maybe try to fix a problem yourself instead of asking everyone a silly question.

It appears that this user is quite new to scratch. They may not have known how to deal with sprites as well as you do. They were asking for help since they needed it. No question is a silly question

Yes, actually. You can use negative values in your blocks to make it move a certain way, I usually rotate in the costume editor for my projects, but you can use
turndegrees

To rotate as well.
Dragonlord767
Scratcher
1000+ posts

How to rotate a sprite without changing direction

Your best options would be to use the Change x and change y blocks, or to rotate the sprite in a new costume, then have it switch to that costume.
beano1207
New Scratcher
2 posts

How to rotate a sprite without changing direction

Thanks guys!
cs3624959
Scratcher
29 posts

How to rotate a sprite without changing direction

sorry for being mean
oliviervanwouwe
Scratcher
1 post

How to rotate a sprite without changing direction

Generate several images, one for each direction. Then change the costume based on the direction.

Last edited by oliviervanwouwe (March 27, 2021 17:23:57)

ninjaMAR
Scratcher
1000+ posts

How to rotate a sprite without changing direction

oliviervanwouwe wrote:

Generate several images, one for each direction. Then change the costume based on the direction.
Please don't necropost
atomnick
Scratcher
7 posts

How to rotate a sprite without changing direction

Actually you can kind of do this. Make an invisible sprite that changes direction and moves in that direction, then make the character sprite always go to the invisible sprite.
Spentine
Scratcher
1000+ posts

How to rotate a sprite without changing direction

atomnick wrote:

Actually you can kind of do this. Make an invisible sprite that changes direction and moves in that direction, then make the character sprite always go to the invisible sprite.
Please don't necropost
Supernoodles99
Scratcher
100+ posts

How to rotate a sprite without changing direction

beano1207 wrote:

Hi,
How do I rotate a sprite, but not changing the direction that the sprite moves in.
Any help would be appreciated. Thanks
Do this:
changexbydistanceinpixels*sinofwanteddirectionchangeybydistanceinpixels*cosofwanteddirection
instead of this:
movedistanceinpixelssteps
or instead you could just rotate all the costumes, but that can be time consuming in some cases

Powered by DjangoBB