Skip to content

Instantly share code, notes, and snippets.

--- aims-ver1.90a¥bin¥AIMS_dev.exeで実行
-- boot.lua
function boot_OnStart()
G.sample = loadGraphic("sample1.png");
A.sample = createActor(G.sample, 300, 300, 10, 'Player');
local hoge = sendMessage(A.sample, 'msgHoge', {scene_handle=iThisScene()});
hoge = hoge == nil and 'nil' or 'hoge';
debugOut('msgHoge return value:' .. hoge);
end
@unagisyan
unagisyan / setGraphicAnimeSequence.lua
Last active December 22, 2015 13:58
setGraphicAnimeSequenceで登録したアニメーションを同じアクターでもう一度再生したい。
-- 適当にカット
G.base = loadGraphic("res/img/base.png")
G.hoge_anime = {}
table.insert(G.hoge_anime, cutGraphic(G.base, 0, 0, 64, 64))
table.insert(G.hoge_anime, cutGraphic(G.base, 0, 64, 64, 64))
setGraphicAnimeSequence(G.hoge_anime, 2);
-- アクターに割り当て
local hoge_actor = createActor(G.hoge_anime, 100, 100, 0, 0, LAYER_HOGE)