ScarletBlackMarket/script/sample/SampleRB02.txt

41 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2022-08-20 05:42:00 +00:00
<EFBFBD><EFBFBD>#qg<71>e>_U^<5E><>[Stage]
#ScriptVersion[3]
#Title["SampleRB02"]
#Text["SampleRB02<1A><>wb_(w<><77>eb_);u<>Pn0<6E>V<EFBFBD><56><EFBFBD>0<EFBFBD>b'Y"]
@Initialize
{
TSample();
}
@MainLoop
{
yield;
}
task TSample
{
//;u<>P<EFBFBD>0<EFBFBD>0-<2D><>[
let dir = GetCurrentScriptDirectory();
let path = dir ~ "Effect01.png";
let obj = ObjPrim_Create(OBJ_SPRITE_2D); //2D<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0ub
Obj_SetRenderPriorityI(obj, 21); //<00>c;u*QHQ<48>^<5E>0-<2D><>[
ObjPrim_SetTexture(obj, path); //<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0-<2D><>[
ObjSprite2D_SetSourceRect(obj, 44, 54, 71, 105); //<00>c;uCQ-<2D><>[(44, 54)-(71,105)
ObjSprite2D_SetDestCenter(obj); //<02><>p<EFBFBD>0(0, 0)-N<>_k0M<30>n
ObjRender_SetAngleZ(obj, 45); //45<00><00>V<EFBFBD><56>
ObjRender_SetScaleXYZ(obj, 2, 2, 1); //X,Y<00>eTk02 Pk0<6B>b'Y
ObjRender_SetPosition(obj, 100, 150, 0); //(100, 150)k0<6B>y<EFBFBD>R
//240<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>__j
loop(240){yield;}
Obj_Delete(obj); //<00>c;u<>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0JRd<52>
//<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0B}<7D>N
CloseStgScene();
}