Hello! I’m new to Codea (I have Codea Scratchpad) and I have no idea what I’m doing, I am completely new to programming, I have no question at the moment just stop by to say hello! At the moment I’m trying to figure out how to make Codea recognize single touch then multi-touch.
@MrCoolesta Welcome to the forum. Look at the Wiki link at the top of this page. You’ll find a lot of useful information there.
@MrCoolesta - welcome!
I’ve written some ebooks that may help, here
I would start with Lua, the language behind Code, then go onto Codea.
Codea is the most fun I’ve ever had with an app, so I hope you enjoy it too.
@MrCoolesta the touch function here a few lessons:
In Lua there are 3 functions that are doing smt:
function setup() -- One time when asked like normal classes end function draw() -- Every 60 times a second end function touched(t) -- The touch options. Asked when touched end function otherfunction() -- These functions will be asked with otherfunction() so their name and this: () end
So this 4 functions are existing in Lua
Class function by MyClass:
MyClass = class() -- It has been started function MyClass:init() -- This I will teach you later end function MyClass:draw() -- Do your drawings here end function MyClass:touched(t) -- The action end
So here we go with the init In the ( ) from the function is the PANEL In the function is the CLASS-SETUP function MyClass:init(x, y) self.x = x self.y = y end That means, that in the Main-Class it will be drawn so: If you ask in the setup-function the object as a class ex.: MyNewObject = MyClass(x, y) -- x, y replace with integer values: 1 - 9999999999999999999 (19 digits -- maximum) So you are calling the object This was my lesson
P. S. @Ignatz - I posted in “I need some classes all what I have, it still doesn’t work”