HOME | DD

#bitmap #dll #essentials #functions #pokemon #script
Published: 2015-09-22 15:09:47 +0000 UTC; Views: 4600; Favourites: 12; Downloads: 43
Redirect to original
Description
Klein Bitmap Functions is a DLL for Pokémon Essentials that will allow to make some bitmap functions fastest that using RGSS.Some of the functions are experimental and they will be updated often, if you find any glitch or weird thing using my functions, report it.
Download: pokemonfangames.com/script.php…
Functions for bitmaps
- scroll_up(speed): Scroll a bitmap
- scroll_down(speed): Scroll a bitmap
- scroll_left(speed): Scroll a bitmap
- scroll_right(speed): Scroll a bitmap
- to_retro(c1, c2, c3, c4): Repaint the bitmap using only a 4 color pallete, c1 is the darker color, c2 the mid-darker, c3 the mid-brighter and c4 the brighter.
- to_negative: Repaint the bitmap with negative colors
- add_outline(c1, pixelsize): Add a colored outline
Functions for sprites
- set_pattern(pattern, alpha, everyframe=false): This functions will blend a bitmap over the actual one (third Zorua in the preview picture)
- delete_pattern: Delete the klein pattern (if any)
Extra functions
- klein_bitmap_version: Return the version from the DLL
- compare_klein_bitmaps(bitmap1, bitmap2): Return true if the bitmap is exactly the same (dimensions, etc)
- klein_dll(func, send, get): Call a function from the DLL
How to install
1. Copy the KleinBitmap.dll to your game's folder.
2. Copy and paste the KleinBitmapFunctions script above main.
Related content
Comments: 12
Starwolf39YT [2016-08-17 23:54:05 +0000 UTC]
How can you Copy/paste the script in the KBF Script above main. How does that work?
👍: 0 ⏩: 0
DLPalindrome [2016-07-02 21:39:06 +0000 UTC]
Hey Klein - this is really awesome. Thanks for making this.
I've got some questions:
- Is this file format, .kpal, your invention? Why are you using it instead of .pal?
- Is there a way to see what's in individual swatches on the palette? I'd like to view and modify the RGB values without needing to know what colour it is first. It'd be great to be able to access the swatches by index.
👍: 0 ⏩: 0
kiedisticelixer [2016-02-05 00:37:37 +0000 UTC]
Do you have any tips on recolouring a sprite based on another Pokemon's colour? Basically, storing a Pokémons palette, in order to use to_retro. I'm particularly looking at changing the palette of an egg (see: www.spriters-resource.com/reso… ) for example, although it could be given many more uses, like those emerald randomizers that change palettes, too!
👍: 0 ⏩: 1
KleinStudio In reply to kiedisticelixer [2016-02-05 21:04:36 +0000 UTC]
Maybe the save_pallete and modify_pallete functions can help you with that (there's an example in the project).
If you want to use to_retro for that you can store all the palletes in arrays or something.
👍: 0 ⏩: 0
shiney570 [2015-09-22 16:08:38 +0000 UTC]
hey! may i ask what the point of this is? i mean most of the stuff is also something RGSS+pokemon essentials has already.so whats new?
👍: 0 ⏩: 1
KleinStudio In reply to shiney570 [2015-09-22 16:13:33 +0000 UTC]
Are you sure? RGSS has functions for fill with pixels, set pixels and get a color, you can do stuff like this with those functions, but with fps dropping.
For example, for the pattern function (third Zorua), I did that function with only RGSS and I was getting 20 fps, with the DLL the game is working at 40fps since the bitmap is processed with the DLL and not with slows RGSS functions
👍: 0 ⏩: 0
Manuxd789 [2015-09-22 15:15:20 +0000 UTC]
Molaría uno para reducir el lag (?) xD Muy buen aporte, voy a probarlo ^^
👍: 0 ⏩: 1
KleinStudio In reply to Manuxd789 [2015-09-22 15:39:56 +0000 UTC]
Pues justo te decía lo de esta mañana por eso. Los mapas se van creando según vas avanzando copiando lo tiles necesarios sombre un bitmap con el tamaño de la pantalla y RGSS es lentísimo para funciones con bitmaps. Hacer una funcion como la de cambiar toda una paleta de colores en un sprite con una función externa apenas se nota la bajada de FPS (si es que baja, solo he notado bajadas de 1 fps mientras se ejecuta en un bitmap gigantesco), la misma función la hice en RGSS con get_pixel y set_pixel y me bajaron como 30.
👍: 0 ⏩: 1
Manuxd789 In reply to KleinStudio [2015-09-22 17:33:02 +0000 UTC]
Pero éste no hace que bajen los fps D:
👍: 0 ⏩: 0