Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:07 22 Apr 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : SPRITE next and move?

Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 602
Posted: 08:05pm 11 Mar 2026
Copy link to clipboard 
Print this post

I tried to replace the SPRITE show safe lines in my program with SPRITE next and SPRITE move since the manual says those are more efficient but I don't see the sprites when I run the program. What else do I need?

FRAMEBUFFER layer
FRAMEBUFFER write "L"
SPRITE load "balloon.spr"
FOR x=0 TO 280
SPRITE next 3,x-15,130
SPRITE next 2,x,280-x
SPRITE next 1,x,x
SPRITE move
'SPRITE show safe 3,x-15,130,1
'SPRITE show safe 2,x,280-x,1
'SPRITE show safe 1,x,x,1
FRAMEBUFFER copy L,N
NEXT x




Balloon.zip
Edited 2026-03-12 06:05 by toml_12953
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4367
Posted: 10:39am 12 Mar 2026
Copy link to clipboard 
Print this post

Hi Tom,

You never SHOWed the sprites in the first place:

' Option Simulate PicoMiteVGA

FRAMEBUFFER layer
FRAMEBUFFER write "L"
SPRITE load "balloon.spr"

Dim first_time% = 1

FOR x=0 TO 280

 If first_time% Then
   SPRITE show 3,x-15,130,1
   SPRITE show 2,x,280-x,1
   SPRITE show 1,x,x,1
   first_time% = 0
 Else
   SPRITE next 3,x-15,130
   SPRITE next 2,x,280-x
   SPRITE next 1,x,x
   SPRITE move
 EndIf
 
 FRAMEBUFFER copy L,N
 Pause 50

NEXT x


Best wishes,

Tom
Edited 2026-03-12 20:41 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 602
Posted: 12:18pm 12 Mar 2026
Copy link to clipboard 
Print this post

  thwill said  Hi Tom,

You never SHOWed the sprites in the first place:

Best wishes,

Tom


Duh! Thanks! The balloons are flying fine now. On to the next project - to shoot them down!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026