This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-03-06 09:26:06

WingsGames
Scratcher
Registered: 2011-02-21
Posts: 500+

Help with scrolling

I'm making my first first-person shooter game, and ran into two problems. A) I don't know how scrolling works, and B) I don't know how to make the screen turn faster when the mouse is closer to the side. Some help would be greatly appreciated!


Are you an aspiring home decorator? If so, please answer my question!

Offline

 

#2 2011-03-08 07:59:48

funnyman1120
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: Help with scrolling

you should search "basic scrolling tutorial" or "scrolling tutorial"


Check out my website for updates on all your favorite games! Funnyman1120's Website

Offline

 

#3 2011-03-10 04:34:14

ziesha
New Scratcher
Registered: 2011-03-10
Posts: 5

Re: Help with scrolling

heyi !

Offline

 

#4 2011-03-12 13:00:04

mrsrec
Scratcher
Registered: 2010-11-14
Posts: 100+

Re: Help with scrolling

WingsGames wrote:

I'm making my first first-person shooter game, and ran into two problems. A) I don't know how scrolling works, and B) I don't know how to make the screen turn faster when the mouse is closer to the side. Some help would be greatly appreciated!

Scrooling Demo




Just Download It

Here!


I'd  Be Happy To Help

wink

Last edited by mrsrec (2011-03-12 13:01:31)


Scratchy Scratcher Scratched Scratch Scratches When He Scratchy Scratches Scratch Projects. These Scratch Projects Were Started From Scratch.
http://internetometer.com/image/37716.png

Offline

 

#5 2011-03-12 13:07:40

mrsrec
Scratcher
Registered: 2010-11-14
Posts: 100+

Re: Help with scrolling

For Part B,Maybe Make 2 Sprites(1 For Each Edge) And Use The (Distance To =$Sprite$) Reporter With A Dot Sprite With [Go To Mouse Pointer]. Did That Help?

cool

<when green flag clicked>
<forever>
<go to[ Mouse Pointer

<set{ Speed  }to( <distance to[ edge1
<end>

Last edited by mrsrec (2011-03-12 13:14:50)


Scratchy Scratcher Scratched Scratch Scratches When He Scratchy Scratches Scratch Projects. These Scratch Projects Were Started From Scratch.
http://internetometer.com/image/37716.png

Offline

 

#6 2011-03-13 08:54:51

WingsGames
Scratcher
Registered: 2011-02-21
Posts: 500+

Re: Help with scrolling

@mrsrec: Thank you! That really cleared things up! However, the game will be 3D, so I'm not sure if the scrolling demo would work. For the scrolling, I've just been making it so each time he moves forward, all other sprites get bigger.


Are you an aspiring home decorator? If so, please answer my question!

Offline

 

#7 2011-04-18 20:14:30

mrsrec
Scratcher
Registered: 2010-11-14
Posts: 100+

Re: Help with scrolling

WingsGames wrote:

@mrsrec: Thank you! That really cleared things up! However, the game will be 3D, so I'm not sure if the scrolling demo would work. For the scrolling, I've just been making it so each time he moves forward, all other sprites get bigger.

I Was Wrong Anyway.





<when green flag clicked>
<forever>
<go to[ mouse pointer ]
<set{ speed  }to( (join(-) <distance to[ edge1  ]>
<end>


smile

Last edited by mrsrec (2011-04-18 20:19:48)


Scratchy Scratcher Scratched Scratch Scratches When He Scratchy Scratches Scratch Projects. These Scratch Projects Were Started From Scratch.
http://internetometer.com/image/37716.png

Offline

 

Board footer