Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scea.yaroze.programming.2d_graphics,scee.yaroze.programming.2d_graphics Subject: Re: Scrolling without BG ?? Date: Thu, 29 May 1997 11:01:18 +0100 Organization: Sony Computer Entertainment Europe Lines: 42 Message-ID: <338D53EE.3D1A@interactive.sony.com> References: <5mgje6$shk7@scea> <338BEEB9.47F9@interactive.sony.com> <5mjcn4$7d03@scea> Reply-To: N/A-Use-Newsgroup NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Xref: chuka.playstation.co.uk scea.yaroze.programming.2d_graphics:80 scee.yaroze.programming.2d_graphics:110 George Bain wrote: > > In article <338BEEB9.47F9@interactive.sony.com>, dev_support@interactive.sony.com says... > > >Scrolling sprites: the demo flying\tuto18 has a 'starfield' just > >made of two sprites. > > I looked at that code today and still can't get what I want to do done. > I'll explain it a little better: > > - 2 - 160*240 images > - one on the left and the other onn the right to fill the screen > > I want to scroll them from right to left, when image.x < 0 wrap around > to the right of the screen. > > 320 > ---------------------- > | | > | | > <- | <- scroll left | <- wrap around > | | > 2 | | > 4 | | > 0 | | > | | > | | > | | > | | > |--------------------- > > I want to do this without using tiles..I have a image I want to scroll > and it is not worth th effort to cut into 16*16 tiles. > > Latah..... > > George Bain So draw the image at image.x < 0 and again at 320 + image.x. and when image.x == -320 make image.x = 0. Stuart