Essentially, how do set the origin point of a sprite?
How do I set the point to rotate at on SPROT?
BlackDrag0n23Created:
Why thank you kind sir.
What if I wanted to make an animal rotate and move in that direction?From the sound of it, I believe you would just need a simple loop for it:
ACLS X=100 Y=50 SPSET 1,[animal sprite number] SPHOME 1,8,8 WHILE 1 VSYNC 1 SPOFS 1,X,Y SPROT 1,360 INC X,1 WENDUnfortunately, I don’t know the syntax for SPROT very well, so you may have to change that slightly.
Thank you!What if I wanted to make an animal rotate and move in that direction?From the sound of it, I believe you would just need a simple loop for it:ACLS X=100 Y=50 SPSET 1,[animal sprite number] SPHOME 1,8,8 WHILE 1 VSYNC 1 SPOFS 1,X,Y SPROT 1 INC X,1 WENDUnfortunately, I don’t know the syntax for SPROT very well, so you may have to change that slightly.
i'm having trouble. I don't quiet know what i'm doing wrong. the fish either goes in a random direction or not at a;;Thank you!What if I wanted to make an animal rotate and move in that direction?From the sound of it, I believe you would just need a simple loop for it:ACLS X=100 Y=50 SPSET 1,[animal sprite number] SPHOME 1,8,8 WHILE 1 VSYNC 1 SPOFS 1,X,Y SPROT 1 INC X,1 WENDUnfortunately, I don’t know the syntax for SPROT very well, so you may have to change that slightly.
i'm having trouble. I don't quiet know what i'm doing wrong. the fish either goes in a random direction or not at a;;Sorry, it may have been a problem with my first post of the code. I’ve fixed up my code to make the sprite continue rotating instead of just going to a single specified angle:
ACLS X=100 Y=50 SPSET 1,[animal sprite number] SPHOME 1,8,8 WHILE 1 VSYNC 1 SPOFS 1,X,Y SPROT 1,R INC X,1 INC R,2 IF R>360 THEN R=0 WENDYou can make the sprite spin faster by increasing the number that R is raised by in INC R,2. You can do you same for moving the sprite to the right by increasing the number that X is increased by.