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

#1 2008-06-24 01:47:32

Josh99
Scratcher
Registered: 2008-05-20
Posts: 37

Scrolling help for my car game.

I want advice on the best way to add scrolling to my game. http://scratch.mit.edu/projects/Josh99/196247

Offline

 

#2 2008-06-24 06:53:10

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Scrolling help for my car game.

Go here  http://scratch.mit.edu/forums/viewtopic.php?id=2440&p=1 and look at archmages post. Then, just do the same thing for y and instead of 480, put 360.

Offline

 

#3 2008-07-08 13:12:43

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Scrolling help for my car game.

Try some of my projects. They are scrolling tutorials that are easy and efficient. You already have velocity in your game which helps and you might be wanting loop scrolling. As bobby said switch the Y co-ordinate for 360 instead of 480. You will need to put the velocity as so.....

|Forever|
(Change scroll_x by [ 0-{Velocity_x} ]
(Change scroll_y by [ 0-{Velocity_y} ]

and not as

|Forever|
(Change x-position by [Velocity_x]
(Change y-position by [Velocity_y]

If you need any more help tell me and ill put the scrolling in for you.

TRO95

Last edited by tro95 (2008-07-08 13:28:22)

Offline

 

#4 2008-07-08 14:28:56

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Scrolling help for my car game.

I have had a look at the project but the way you did all the movement it is extremely difficult to put scrolling in. I am trying with various formulas to make all the spirits work together.

There is an ulternate sulution. When the car turns if you made it so it could only be facing either left, right, up or down instead of inbetween then scrolling would be dead simple to put in.

TRO95

Last edited by tro95 (2008-07-08 14:29:13)

Offline

 

#5 2008-07-09 08:40:48

tro95
Scratcher
Registered: 2008-02-20
Posts: 78

Re: Scrolling help for my car game.

I have sucessfully made the project

http://scratch.mit.edu/projects/tro95/209852

Last edited by tro95 (2008-07-09 14:03:31)

Offline

 

Board footer