Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Richard Ashbery Newsgroups: comp.sys.acorn.programmer Subject: Re: Saving animated sprites from a simple BASIC graphic program Date: Thu, 19 Mar 2020 13:34:13 +0000 (GMT) Organization: None Lines: 47 Message-ID: <5853b30d57basura@invalid.addr.uk> References: <5852bdfc1cbasura@invalid.addr.uk> <5853462123basura@invalid.addr.uk> <0a9d965358.Matthew@sinenomine.freeserve.co.uk> X-Trace: individual.net Sx0Lfivo34GgKpRYCrhL6QSwvsYIBKG8JmYjVgbB/PEgDlmsJe X-Orig-Path: uwclub.net!richard.ashbery Cancel-Lock: sha1:S1SWyp2iFSYF3tVty8NGCCLePvM= User-Agent: Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32 Xref: csiph.com comp.sys.acorn.programmer:6038 In article <0a9d965358.Matthew@sinenomine.freeserve.co.uk>, Matthew Phillips wrote: > In message <5853462123basura@invalid.addr.uk> on 18 Mar 2020 > Richard Ashbery wrote: > > In article , > > Steve Fryatt wrote: > > > On 17 Mar, Richard Ashbery wrote in message > > > <5852bdfc1cbasura@invalid.addr.uk>: > > > > > > How should I do this please? Some simple code examples would > > > > be appreciated. > > > > > Is there any chance of seeing your current code? > [snip] > > As suggested by Chris I've eliminated CLG and substituted the EOR > > GCOL 3,63. Running program displays an offset square as expected > > but when the sprites are saved the offset is missing and clearly > > absent when viewing sprites in !Paint. Could this be a problem > > with the way the program collects the sprite data? > It sounds like it is. I think Steve was hoping for the complete > code: if you can send the whole lot it will be much easier to tell > where the problem is. The code you copied into the message was > just for drawing the graphics. It is complete honestly Matthew. You've missed the bit where the sprite group is created. Ensure System sprites memory is set to 16.384 Mbytes in Tasks; Run program; Open a TaskWindow; type slist to check that the sprite group is created; type ssave [filename] to save it to root. Open the sprite to display the group in !Paint but I'm sure you know all this!! Although Steve has posted a working modification run his program not mine and you will see it works correctly. Apparently my method of generating the sprites is deprecated (went out with the arc I believe) - I'll have a look at Druck's SWI, OS_SpriteOP though I suspect I might need help understanding it. I'll get back to other posters. Richard