and also, about capital. its scrolling is awesome. i couldn't understand any of the coding though. im not that could at math, (even though im one of the best in my class). it was infinite scrolling, though he needed a frame.
i ageree with dingdong. just replace the x with (sin of direction) and the y with (cos of direction). in response to lucario621, i know how old he is, but you do not ask people for their age online. i have experienced this a lot. the reason how i know your age, simple. Oldschooler2 said it as a comment in one of your projects.
Well archmage said "I am not giving out my age but I am older than you :P" and I said I was 9 and he said he was older than his brother and he said that his brother was in elementary so, (a guess) he is probably age 12-15, is that close?
Well I made this one mainly to test out the trig functions in scratch. I know you can produce the same effect using the move block but this is more efficient.
nuh huh, you can have as many as you want,as long as they all fit the stage at once.for the one to the top left of the top left,make the rotation center go across (x)the size of 1 block,and down(y) the size of 2 blocks.
by the way thanks for commenting on my updates to be added in itch-it means a lot to have a comment from archmage
(continued) Thus they can be rotated, en masse, around that origin point quite easily. All you need to do subsequently is use trig to calculate where the sprites need to be moved to as they rotate.
Archmage, if you want to have a go at scroll and rotate with the new trig functions, the basis is (relatively) simple. Make sure your background sprites all share the same origin point ( so the top-left sprite has its origin at the bottom right, etc) so that all 4 sprites are placed at the same x/y coordinate.
I could make one about up and down movement with left and right movements. But not multi directional movement. The reason for that is because I don't want to have to explain trigonometry as it is complex and I don't understand it that well my self. But I'll post code snip its for this maybe.
Could you post a tutorial on how you did on the forum. I get the basics as it will be similar to horizontal scrolling but I would be worthwhile knowing and most certainly be apreciated.
Comments
You need to be logged in to post comments
Add a Comment
Yo Archmage, this could be the technique that works for Taxi 2. Do you mind if I use it?
(view all replies)Comment Reply
sure
(view all replies)Comment Reply
Mine dosent use trig it just figures out what the x,Y coordinates of 1 step are then it goes back and multiplies those coordinates by 10
(view all replies)Comment Reply
nvm sorry that was a mistake
(view all replies)Comment Reply
this frame needs to go to front. another scrolling piece is going in front of it.
(view all replies)Comment Reply
and also, about capital. its scrolling is awesome. i couldn't understand any of the coding though. im not that could at math, (even though im one of the best in my class). it was infinite scrolling, though he needed a frame.
(view all replies)Comment Reply
i ageree with dingdong. just replace the x with (sin of direction) and the y with (cos of direction). in response to lucario621, i know how old he is, but you do not ask people for their age online. i have experienced this a lot. the reason how i know your age, simple. Oldschooler2 said it as a comment in one of your projects.
(view all replies)Comment Reply
You mean the velocity variables? Well, I like the movement effect of putting in velocities :)
(view all replies)Comment Reply
when I was creating scroll variables for the bullets in gray sky I needed to download this and I noticed you didn't really need the X and Y variables
(view all replies)Comment Reply
Yeah, I remember when that game came out :)
(view all replies)Comment Reply
it was the first scratch game I ever played
(view all replies)Comment Reply
oh ya i remebre capital
(view all replies)Comment Reply
Umm that's nice to know.
(view all replies)Comment Reply
You don't do good in math? hehehehehe *rasberries!*, I am expert at music class, (child protogy pianist) and at computer class.
(view all replies)Comment Reply
Trig is HARD, and it's not nearly as fun as you may think. Yes I can use a bit of trig in programming but I mess up my math tests.
(view all replies)Comment Reply
No, I guess not, well you say you are taking courses in programming, not games, so maybe collage (Hmmm.)
(view all replies)Comment Reply
Is my age really even important?
(view all replies)Comment Reply
Well archmage said "I am not giving out my age but I am older than you :P" and I said I was 9 and he said he was older than his brother and he said that his brother was in elementary so, (a guess) he is probably age 12-15, is that close?
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
I think capital had some pretty good scrolling.
(view all replies)Comment Reply
Probably.
(view all replies)Comment Reply
So do you think it is possible to make a all dicretion scroller that is both simple and not flickrey
(view all replies)Comment Reply
Well I made this one mainly to test out the trig functions in scratch. I know you can produce the same effect using the move block but this is more efficient.
(view all replies)Comment Reply
I found an easyer way to do 2 way scrolling
(view all replies)Comment Reply
There as got to be an easyer way to do all dicretion scrolling.
(view all replies)Comment Reply
you are the god of scratch!
(view all replies)Comment Reply
you're stuff is cool!
(view all replies)Comment Reply
I am not giving out my age but I am older than you :P
(view all replies)Comment Reply
HOw old are you!? I only 9.
(view all replies)Comment Reply
Yeash it does.
(view all replies)Comment Reply
skool makes you smawt
(view all replies)Comment Reply
That is cool! I wonder how you do that...
(view all replies)Comment Reply
Yes, but only 4 sprites can be properly rotated using that method. If you use more than 4 it will not work.
(view all replies)Comment Reply
nuh huh, you can have as many as you want,as long as they all fit the stage at once.for the one to the top left of the top left,make the rotation center go across (x)the size of 1 block,and down(y) the size of 2 blocks. by the way thanks for commenting on my updates to be added in itch-it means a lot to have a comment from archmage
(view all replies)Comment Reply
(continued) Thus they can be rotated, en masse, around that origin point quite easily. All you need to do subsequently is use trig to calculate where the sprites need to be moved to as they rotate.
(view all replies)Comment Reply
Archmage, if you want to have a go at scroll and rotate with the new trig functions, the basis is (relatively) simple. Make sure your background sprites all share the same origin point ( so the top-left sprite has its origin at the bottom right, etc) so that all 4 sprites are placed at the same x/y coordinate.
(view all replies)Comment Reply
realy cool
(view all replies)Comment Reply
Errr, maybe, I can't think up the code for it right away though.
(view all replies)Comment Reply
(link to project)
(view all replies)Comment Reply
Or you could do this
(view all replies)Comment Reply
It is sorta complex. You need to know trigonometry to understand how this project works.
(view all replies)Comment Reply
I get it...but then again I don't. :/
(view all replies)Comment Reply
I am bad at maths (math). Even though I am in set 1 at skool.
(view all replies)Comment Reply
I could make one about up and down movement with left and right movements. But not multi directional movement. The reason for that is because I don't want to have to explain trigonometry as it is complex and I don't understand it that well my self. But I'll post code snip its for this maybe.
(view all replies)Comment Reply
Could you post a tutorial on how you did on the forum. I get the basics as it will be similar to horizontal scrolling but I would be worthwhile knowing and most certainly be apreciated.
(view all replies)Comment Reply
Yea, but there are only about 30 active forum members who would even think of joining groups. Crank_Inc was alright. But now you over did it.
(view all replies)Comment Reply
cool! ps there are only 3 gaming company;s on scratch
(view all replies)Comment Reply
Slick! Looks like another giant step forward in scrolling technology! Nice job.
(view all replies)Comment Reply