Discuss Scratch

LogicTheWise
Scratcher
4 posts

How to make a 8 directional sprite face the proper direction.

I got the 8 directional movement down, now I need to figure out how to make the sprite face the proper direction when it moves in that direction. Currently it just runs through all the frames and moves in the direction I tell it.
C0000lguy
Scratcher
100+ posts

How to make a 8 directional sprite face the proper direction.

Could your share a demo project?
someone623852
Scratcher
16 posts

How to make a 8 directional sprite face the proper direction.

since no example project i'll do what i can
whenclickedforeverifkey(key)pressed?thenpointindirection(direction)
LogicTheWise
Scratcher
4 posts

How to make a 8 directional sprite face the proper direction.

Apologies about that, I will send a link for you to look at.

https://scratch.mit.edu/projects/891575760/
Scratch-Minion
Scratcher
1000+ posts

How to make a 8 directional sprite face the proper direction.

The project is not shared, so we cannot see it.

You will need to set the direction in multiples of 45 degrees for the 8 directions.
eg. 0, 45, 90, 135, 180, 225, 270, 315
LogicTheWise
Scratcher
4 posts

How to make a 8 directional sprite face the proper direction.

Jlerpy
Scratcher
1000+ posts

How to make a 8 directional sprite face the proper direction.

What is the idea behind using “Change Frame”? That's just cycling your costumes when any button is pressed.
LogicTheWise
Scratcher
4 posts

How to make a 8 directional sprite face the proper direction.

Jlerpy wrote:

What is the idea behind using “Change Frame”? That's just cycling your costumes when any button is pressed.

I was following a tutorial. I am unsure as to what I am doing, hence the discussion post in the first place.
Jlerpy
Scratcher
1000+ posts

How to make a 8 directional sprite face the proper direction.

Oh, is it for a walk cycle?
LogicTheWise
Scratcher
4 posts

How to make a 8 directional sprite face the proper direction.

Jlerpy wrote:

Oh, is it for a walk cycle?
I want to say yes, but its only 8 static frames stitched together. It's a boat.

Powered by DjangoBB