This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 適当にカット | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 |