Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 263
» Latest member: DavidBox
» Forum threads: 1,075
» Forum posts: 6,436

Full Statistics

Online Users
There are currently 181 online users.
» 0 Member(s) | 177 Guest(s)
Applebot, Baidu, Bing, Google

Latest Threads
Strange Happenings
Forum: Bug Reports
Last Post: boriel
4 hours ago
» Replies: 1
» Views: 99
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 515
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 397
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,739
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 672
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 1,031
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 422
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,198
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,964
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 477

 
  NextBuild sprites
Posted by: Crivens999 - 11-13-2023, 10:08 AM - Forum: Help & Support - Replies (2)

Been using NextBuild for a little while, mucking around with my own editor for creating maps/sprs etc, got my scrolling tilemap working, but have hit a bit of a wall with sprites.
Ok so as far as I can gather the Next can handle 64 hardware sprites with 256 colours, or 128 hardware sprites with 16 colours (4bit).

When I use the InitSprites command I think this loads in upto 64 (or 128 for 4bit) sprites into the video memory (max is 16k). Then when I use UpdateSprite I can assign one of those sprite images (patterns in code) to a sprite ID. So I can use the same sprite image many times for my 64 onscreen sprites.

All good, except my main player is 4 sprites (32x32). It can move in 8 directions, and there are 5 animation frames. So in total 160 sprites just for the player.

So I'm running out of sprites. Now before I go mucking around reducing graphics to single sprite sizes, or using flipping/mirroring etc, then is it possible to use InitSprites, or some other command, to force load new images over the loaded ones? I was thinking of keeping the first 4 sprites just for the player and then just initialising those 4 sprites as the animation or direction changes. A quick test of using InitSprites (for the full 64 sprites) every frame shows this doesn't slow things down badly, so hopefully is possible. I don't really know ASM well enough to alter the InitSprites, but basically would be the same but with a starting point (so can init just the first 4 sprite, then the next 4 sprites (eg. for enemy)). 

Also is it possible to use 8bit graphics (256 colour) for the layer 2 tilemap, and 4bit graphics (16 colour) for the sprites?

Print this item

  Where is the return value? (solved but with exit error)
Posted by: zarsoft - 11-08-2023, 05:16 PM - Forum: Help & Support - Replies (6)

LET s$ = "1+1"
LET s$ = CHR$(_VAL) + """" + s$ + """"
LET r = EvalBasic(s$)

How do I get the return value of VAL ?

Print this item

  Wrong math (solved)
Posted by: zarsoft - 11-08-2023, 09:43 AM - Forum: Bug Reports - Replies (4)

PRINT SIN 1
Gives: 0.841461181640625 (wrong)

LET v = 1
PRINT SIN v
Gives: 0.84147098 (right)

Print this item

  POINT = ? (solved)
Posted by: zarsoft - 11-02-2023, 09:50 AM - Forum: Bug Reports - Replies (1)

Where is the POINT function?

Print this item

  VAL = ? (solved)
Posted by: zarsoft - 10-31-2023, 03:33 PM - Forum: Bug Reports - Replies (8)

f$ = "1+2"
PRINT VAL(f$)
gives 3

PRINT VAL("1+2")
gives 0

Print this item

  The Blue Diamond
Posted by: zarsoft - 10-03-2023, 05:53 PM - Forum: Gallery - No Replies

Click HERE to play online.
[Image: 2.png]

Print this item

  The Towering Inferno
Posted by: zarsoft - 09-26-2023, 11:01 PM - Forum: Gallery - No Replies

Click HERE to play online.
[Image: Towering%20Inferno%20(2022)%20%5bStarsoft%5d.png]

Print this item

  up7
Posted by: zarsoft - 08-13-2023, 08:30 PM - Forum: Gallery - No Replies

Game up7 written in Pascalated BASIC.

To play online, click HERE.
[Image: Up7%20(Boriel)%20(2023)%20%5bStarsoft%5d.png]

Print this item

  Microdrive or +3 Disk support when saving & loading
Posted by: jonesypeter - 08-10-2023, 05:40 PM - Forum: Help & Support - Replies (2)

Hi,

I'm creating an application with lots of arrays and wondered if the save and load commands support the microdrive syntax, or saving to +3 Disk?

Many thanks

Peter

Print this item

  Poker - Win Prizes playing videogames
Posted by: zarsoft - 08-01-2023, 01:58 PM - Forum: Gallery - No Replies

Poker written in Pascalated BASIC.

To play online, click HERE.

(On the bottom of the page you have the link to play online and the link to download.)
[Image: Imagem_3ofaKind.jpg]

Print this item