|
Forum Index : Microcontroller and PC projects : SPRITE next and move?
| Author | Message | ||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
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 KingdomPosts: 4367 |
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 StatesPosts: 602 |
Duh! Thanks! The balloons are flying fine now. On to the next project - to shoot them down! |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |