문제

i'm trying to create a Sifteo game able to detect accelerometer data and write them on a file.txt; I know that several methods exist that allow to visualize data on the shell (but it need to connect the base on the pc) or storing them in a StoredObject, but i'd like to create a text file. In the documentation of sifteo sdk I found something about script lua. I didn't understand it, Can you help me???

Thanks

올바른 솔루션이 없습니다

다른 팁

If you're simply asking for how to make a .txt file in a lua script it should be something like

file = io.open("FileName.txt","w")
file:write("Information")
file:close()

If you're new to lua you can also insert information from a variable or a table by replacing it with the string "Information".

Hope this helped.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top