flopping
Processing Plant

Always still learning
Posts: 26
|
Post by flopping on Aug 18, 2022 15:21:47 GMT
Hi everybody, I wanted to ask if anyone knows if there is a limit when making sprites in MPAGD, that is, how many can I have created? and another question is, how many can I have at the same time on the same screen?
And the same questions with the blocks, many thanks.
|
|
|
Post by xavisan on Aug 18, 2022 20:57:30 GMT
Hi everybody, I wanted to ask if anyone knows if there is a limit when making sprites in MPAGD, that is, how many can I have created? and another question is, how many can I have at the same time on the same screen? And the same questions with the blocks, many thanks. Good Questiom, I don't know the maximum, but the maximum sprite behavior routines are 8, at the moment I haven't required more than 7 sperites, you can use the same behavior routine for different sprites. /xavi
|
|
|
Post by oss003 on Aug 19, 2022 14:34:28 GMT
The max sprites and blocks is hard to tell because it's a combination of graphics data and event code. In theory, you can define max 256 sprites (frames) ..... but that takes 256 x 128 = 32KB
There is a maximum of 12 sprites simultaniously on the screen. The EVENT SPRITETYPE describes the behaviour of a sprite but multiple sprites can have the same behaviour.
In theory, you can define max 255 blocks if you leave block0 as empty block
The nr of sprites, blocks, objects, screen and code determines the size of the game so if the memory is full and you need some extra sprites, delete a screen or delete some frames.
|
|
flopping
Processing Plant

Always still learning
Posts: 26
|
Post by flopping on Aug 20, 2022 21:21:15 GMT
Ok, that's clear, thank you very much.
|
|