Richard's Arcade Tips #2 - Drawing custom stuff with Images

please7tv-please
the best way to do this would be to change the tile, not use like 50 sprites.
image
You can also delay this to make the tile update midway or after the animation of the juice falling. It’ll make the 2 events feel more seamless and like the juice actually did fall on the tile.

As a rule of thumb, try to use as few sprites as possible because they are very laggy.

2 Likes

The link isn’t there! :upside_down_face:

1 Like

oopies here is the link https://makecode.com/_icXUcvR8JaHx

Let me clarify. First one pixel was not intended, but it was the only way I could get the juice to have different lengths. So 16 pixels for each tile covers in juice. Second I tried to use the to bottom of sprite location but images work differently when it comes To tile map location. third If I made a custom tile, like the example I would have to make the game ask what floor tile is beneath the character and there are tons of different ones. Then the juice would all look the same. That’s why I wanted to use images to make a Unique stain on the tile every time.

What I need:

A less laggy solution to making the juice have different lengths. Preferably one sprite.

II need a different unique stain on the tile.

It should cover different tile around it too.

You don’t have to do the coding, I just need a solution for these problems. :grinning_face:

You could make an array and get a random value each time the juice spills!:+1:

1 Like

Could you explain more?