0 Members and 7 Guests are viewing this topic.
Value→{Pointer}Fill(Pointer,X-1)
How exactly do you use the new PORT commands to send data?
There isn't automatic linking yet, so no multilayer games until next version, but you can manipulate the link port directly for applications like sound, interaction with micro controllers, shake detectors, etc. The codes are as follows: 0-both tip,ring high, 1-tip low, ring high, 2-tip high, ring low, 3-both tip,ring low. I might have ring and tip mixed up.EDIT: Oh yeah, the main purpose for the big-endian was for reading 2 byte tokens from programs since they're stored in reverse order.
Let me explain the new masked sprite routine because its really cool. The first layer is the sprite and the second layer is the mask. The way it works is that anything drawn on the first layer is going to be black or gray and any bit that is neither in the sprite layer nor the mask layer becomes transparent. So the codes are 11 for black, 10 for gray, 01 for white, and 00 for transparent. Think of it like a controlled Pt-Off() that also draws gray since you can control which pixels to see through when drawing. The routine is slower than the normal sprite drawing but much faster than trying to draw to both layers individually. Also, due to the choice of color codes, you can use this for monochrome masking as well with the first layer being the sprite you want to draw and the second layer is black in the areas you want to draw over. However keep in mind that the routine still draws to both buffers so make sure you aren't storing anything there first. Here is an exampleLayer1: ████████ ██ ████ ████ ████ ████ ████ ████ ██ ██ ██ ████████Layer2: ████████ ██████████████████████████████████ ████████████ ██████████████████████ ████████████ ████████Result:░░░░████████░░░░░░██ ██░░██ ████ ████ ████ ████ ████ ██░░██ ██░░░░░░████████░░░░The crosshatched color means those pixels don't change when drawing the sprite (transparent).Also, please let me know if you are still getting errors that you were getting before. I tried to fix as much as I could but since I still can't figure out the problem, that means I'm just guessing so I need your help to see if anything actually got fixed.
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13