|
|
|
Help!
by VoroneTZ. 10/14/25 05:04
|
|
|
|
|
|
0 registered members (),
9,184
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 2D questions
[Re: Espér]
#403531
06/21/12 16:34
06/21/12 16:34
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
No, you wouldn't use ent_setskin, but you would do it like this (attention: pseudcode!):
MATERIAL* mtl_complexsprite =
{
effect = "complexsprite.fx";
}
action myAction ()
{
my->material = mtl_create();
effect_cpy(my->material, mtl_complexsprite);
// ...copy other parameters from mtl_complexsprite...
// load bitmaps from file or the like
while (!my->destroyed)
{
// gets bitmap for current rotation and animation
BMAP* b = getMyBitmap(my);
// assign to shader
my->material->skin1 = b;
// shady shade shade!
wait(1);
}
ptr_remove(my->material);
ptr_remove(my);
}
Last edited by HeelX; 06/21/12 16:35.
|
|
|
Re: 2D questions
[Re: Espér]
#403533
06/21/12 16:49
06/21/12 16:49
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
|
|
|
Re: 2D questions
[Re: HeelX]
#403534
06/21/12 16:51
06/21/12 16:51
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
OP
Expert
|
OP
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
that's not really what i wanted.. cause i want the rpg maker ressources to stay like the are, to make it easier to use ._. don't get me wrong it's easy to create a bitmap splitter inside the importer tools to split a 4x4 characterset into 4 1x4 framelines But that disables the ability to select a specific frame pattern of a characterset like in rmxp. And think of autotiles. Autotiles are based on 48 tiles. If you just import 10 nom animated autotiles, you will get 480 bitmaps  and i'be no idea how to write a shader or how to merge shaders together (i tried to learn it from the manual for 8 months and gave up cause i couldn't write it into my brain) Isn't there a solution to get that window effect without cutting the ressources?
Last edited by Espér; 06/21/12 17:13.
|
|
|
Re: 2D questions
[Re: HeelX]
#403538
06/21/12 17:50
06/21/12 17:50
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
Expert
|
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
I wouldn't use "simple" sprites either, btw. I am not sure, but I guess having a few hundred sprites (and thus a few hundred entities) will be quite slow - I would at least try to merge same tiles.
(I would go for the draw_quad solution, drawing them, applying a shader, putting them on the final image. This is not the fastest solution, but well, Gamestudio is a 3D Engine ;))
|
|
|
|