ScarletBlackMarket/script/sample/SampleRB01.txt

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-08-20 05:42:00 +00:00
<EFBFBD><EFBFBD>#qg<71>e>_U^<5E><>[Stage]
#ScriptVersion[3]
#Title["SampleRB01"]
#Text["SampleRB01<1A><>wb_(w<><77>eb_);u<>Pn0<6E>c;u"]
@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_SetDestRect(obj, 100, 150, 127, 201); //<00>c;uHQ-<2D><>[(100, 150)-(127, 201)
//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();
}