Hello!
I don't know if this is the correct place to ask but I have a few questions and a possible request
Sorry for possible bad English :<
-Is there any equivalent for pH3 for the function SetMovePositionHermite? If there isn't, I'd love if someone could reply with an equivalent :<
-Recently I tried to make a library for effects, I tried to make the new DDC styled pentagram (the one with slow 3D rotation) but with no success, as I don't actually know how 3D graphics work in pH3
Here is my function
task MagicCircleV3() {
/*placed on the main loop
Creates a Magic Circle that follows the boss around
DDC styled circle, rotates in XYZ slowly
*/
let angle = 0;
let circle = ObjPrim_Create(OBJ_SPRITE_3D);
ObjPrim_SetTexture(circle, imgEffect);
let enmx = ObjMove_GetX(objEnemy);
let enmy = ObjMove_GetY(objEnemy);
let x1 = -128;
let y1 = -126;
//ObjRender_SetAlpha(circle, 150);
while(!Obj_IsDeleted(objEnemy)) {
ObjSprite3D_SetSourceDestRect(circle, 127, 81, 255, 206);
ObjSprite3D_SetDestRect (circle, x1-128, y1-125, x1, y1);
ObjRender_SetX(circle, ObjMove_GetX(objEnemy));
ObjRender_SetY(circle, ObjMove_GetY(objEnemy));
//ObjRender_SetAngleX(circle, angle);
//ObjRender_SetAngleY(circle, angle);
//ObjRender_SetAngleZ(circle, angle);
angle++;
yield;
}
}
-I'm also trying to make the charge animation that features petals/snowflakes/leaves but besides from the problems shown above, each time I try to draw something outside from the screen, it gets stuck on the edges. Also any idea how to actually move primitive objects? idk if graphics type objects should be threaten as such, because the ObjMove functions seem to not work on them....
Here is the code
//ObjRender_SetAlpha(petal, 150);
ObjSprite2D_SetSourceRect(petal, 194, 230, 221, 249);
ObjSprite2D_SetDestCenter(petal);
ObjRender_SetAngleX(petal, angle);
ObjRender_SetAngleY(petal, angle);
ObjRender_SetAngleZ(petal, angle);
ObjMove_SetDestAtSpeed(petal, ObjMove_GetX(objEnemy), ObjMove_GetY(objEnemy), 5);
angle=angle+round(rand(0,5));
}