I noticed that some projects had varibles X and Y. I found them in alone 2 and aftermath. People never responesed to me and it got on my nerves because I wanted to make a project that was like it.
-EDIT- Fluffy Llamas!!!!
Last edited by gooeygoo (2012-08-21 19:11:50)
Offline
But it's NOT scrolling. play this, then tell me what scripts I should use http://scratch.mit.edu/projects/Wes64/2701250
Last edited by gooeygoo (2012-08-18 15:44:03)
Offline
gooeygoo wrote:
So if this does not get a response, then I would think scratch does not care about me. So don't ignore this post.
Seems a little whiny, don't you think? Especially considering Scratch is a programming language with no thought, emotion, or mind, and the community is helping you out here. Not Scratch. The Scratch Community. And it's completely self-centered to think that if no one responds within a couple minutes that everyone hates you, and doesn't care about you.
Anyways, that's velocities. They are used to make smoother movement. You can find out a basic velocity script, and more on the Scratch Wiki page for it.
Last edited by henley (2012-08-18 15:57:05)
Offline
gooeygoo wrote:
I meant the background, how does it change when you hit a edge, not velocites!!!
Jeez, I was just helping. Besides that kind of scrolling, and yes, that is considered a type of scrolling, has nothing to do with the Y and X variables you said you wanted to build a project with.
You're so unthankful and rude, that I'm not going to help you anymore.
Offline
henley wrote:
gooeygoo wrote:
I meant the background, how does it change when you hit a edge, not velocites!!!
Jeez, I was just helping. Besides that kind of scrolling, and yes, that is considered a type of scrolling, has nothing to do with the Y and X variables you said you wanted to build a project with.
You're so unthankful and rude, that I'm not going to help you anymore.
I should have do that too!
Offline
Reading this, I was going to help, but never mind, I don't help whiners.
Offline
I'd usually agree with firedrake, henley and snoiku, but since it's a simple matter I'll briefly go over it. You basically check the players y position against 180 or -180 depending on what direction you want it to go, then if it's equal/greater than you change background, and use a variable to choose what checking set to use
Offline
Well, sorry, I was kind of annoyed because I didn't know what you meant. And I really should have been nicer when I first started this, so, can you please show me how I do it, and I'll try not to whine? I REALLY WILL, AGREED
Offline
gooeygoo wrote:
Well, sorry, I was kind of annoyed because I didn't know what you meant. And I really should have been nicer when I first started this, so, can you please show me how I do it, and I'll try not to whine? I REALLY WILL, AGREED
I just explained it, use the < and > blocks with the sprites y position in one and the barrier height in the other, then change the background and move the sprite to the opposite end of the screen
Offline
I think people may be struggling to understand what you're requesting help for. Couldn't you use:
when gf clicked forever if <touching [edge v]?> if <(x position) < (0)> broadcast [previous background v] else broadcast [next background v] end end when I receive [previous background v] switch to background ((background #) - (1)) when I receive [next background v] next background
Last edited by Prestige (2012-08-19 16:42:12)
Offline
Sigh...
You really need a step-by-step walkthrough? Can you try and figure it out?
Offline
gooeygoo wrote:
I meant in scratch blocks. can you please use scratch blocks, as the last time you did this, I had no clue what you meant.
I'm not writing in scratchblocks because I can't be bothered to make sure all the brackets are in the right place. It's a fairly simple instruction, if you can't understand it writing the game would be even harder
Offline
berberberber wrote:
Sigh...
You really need a step-by-step walkthrough? Can you try and figure it out?
Well, I tried, but for some reason, one of the backgrounds was skipped when I went to one place.
Offline
gooeygoo wrote:
But it's NOT scrolling. play this, then tell me what scripts I should use http://scratch.mit.edu/projects/Wes64/2701250
Why are you so interested in a script if you don't even know what it does?
Anyway, in that game, it's velocities. We have an excellent wiki article that you might want to check out.
Offline
its my project! why are you asking other people to explain it... shoudnt you just have asked, well, me
Offline
The x y velocity variables control movement, makes it look smooth, and can be used to generate gravity or momentum. But background changing doesn't really have much to do with those variables. For back grounds, make a field, such as this one,
when gf clicked forever if < ([background # v] of [Stage v]) = [10] > if <<<< (x position) > [240]> and < (y position)> [100]>> and < (y position) < [160]>> switch to background [random background v] else if <<<< (x position) > [240]> and < (y position)> [-160]>> and < (y position) < [-100]>> switch to background [random background 2 v] end end endThis will give you a high route, and a low route.
Last edited by sonicfan12p (2012-08-21 14:11:51)
Offline