256 Colour Tutorial Part 2(V2.62): Difference between revisions

Jump to navigation Jump to search
m
Line 104: Line 104:


Save your script and test the game, you may notice two things:
Save your script and test the game, you may notice two things:
# Though the girl's shoes were also painted in red, their colours won't flash with her antennae, since I didn't use slot 32 in painting her shoes. If you check this in the room with the [[media:8bittut_disco.pcx|"disco" background]], you'll see that the red "light" on the door lock won't flash either, because of the same reason.
# Though the girl's shoes were also painted in red, their colours won't flash with her antennae, since I didn't use slot 32 when painting her shoes. If you check this in the room with the [[media:8bittut_disco.pcx|"disco" background]], you'll see that the red "light" on the door lock won't flash either, because of the same reason.
# If you place also the alien sprite in a room, you may notice that his fingertip flashes also, this is because I also used colour slot 32 there. If you check the room with the [[media:8bittut_disco.pcx|"disco" background]], you'll find out that a pixel just about the disco ball flashes also.
# If you place also the alien sprite in a room, you may notice that his fingertip flashes also, this is because I also used colour slot 32 there. If you check the room with the [[media:8bittut_disco.pcx|"disco" background]], you'll find out that a pixel just about the disco ball flashes also.
   
   
Combining the above observations I hope you can get a hang on how to manage your palette and images more wisely when you paint them.
Combining the above observations I hope you can get a hang on how to manage your palettes and images more wisely when you paint them.


Now, let's do some more interesting effect, suppose we don't want the girl's antennae tips to flash quickly, but want the colour to fade in and out gradually, what can we do? Well we may make the following modifications to the above codes:
Now, let's do some more interesting effect, suppose we don't want the girl's antenna tips to flash quickly, but want the colour to fade in and out gradually, what can we do? Well, we may make the following modifications to the above codes:
   int antennaecol='''63, antennaefade=-1''';
   int antennaecol='''63, antennaefade=-1''';


Navigation menu