0 Members and 6 Guests are viewing this topic.
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13
The Tangent() command uses an OS bcall which is much slower than the 8x8 sprite drawing routines, but its still fast enough for most things and more convenient than drawing a bunch of 8x8s and it takes up hardly any memory in the program. Because its an OS routine, they decide how the flags affect it so I really can't do anything about that other than tell you to change the flags with the Fix commands.Also, I know it clips the sprites, but the documentation for that command (_DisplayImage) says that you cannot draw the image totally off the screen for some reason. I don't know if that means it will corrupt ram or something so use with caution if you draw completely off screen.Oh another thing, I should mention. It uses Pt-Off() logic to draw the sprite. That is, it erases behind it as it draws.
Quote from: Quigibo on June 17, 2010, 05:09:17 amThe Tangent() command uses an OS bcall which is much slower than the 8x8 sprite drawing routines, but its still fast enough for most things and more convenient than drawing a bunch of 8x8s and it takes up hardly any memory in the program. Because its an OS routine, they decide how the flags affect it so I really can't do anything about that other than tell you to change the flags with the Fix commands.Also, I know it clips the sprites, but the documentation for that command (_DisplayImage) says that you cannot draw the image totally off the screen for some reason. I don't know if that means it will corrupt ram or something so use with caution if you draw completely off screen.Oh another thing, I should mention. It uses Pt-Off() logic to draw the sprite. That is, it erases behind it as it draws.mhmm I see. Thanks for the info. Would it be slower to use a Tangent() with 16x16 sprites than a for() loop with 4 8x8 Pt-Off() sprites?
Also, I know it clips the sprites, but the documentation for that command (_DisplayImage) says that you cannot draw the image totally off the screen for some reason. I don't know if that means it will corrupt ram or something so use with caution if you draw completely off screen.
If getkey(1)[0000000000000000->Pic1endIf getkey(2)[FFFFFFFFFFFFFFFF->Pic1