Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Cool! Each object has a name and an id. So if you placed a "Rock" object down, that object would be "Rock 1". The next one you place is "Rock 2", etc. 

However, the code editor and JavaScript system is getting a pretty substantial overhaul, so I'd hold off on the JS stuff until I get the docs tidy. I typically post on the Discord channel about the more advanced stuff like the Code Editor, if you'd like to keep up to date.

 But to answer your question, in the future you'll be able to do stuff like this :

var rock = GameObject.Find("Rock 1");
// Launch Rock Into the Air
rock.AddForce(0, 1000, 0);

For Events (like OnClick, as you mentioned), you'd do something like this :

// Global Callback
function OnClick(obj) {
  if(obj.name == "Rock 1") { // Launch Rock Into the Air obj.AddForce(0, 1000, 0); } }

Allright :D thanks for letting me know. I joined the discord server.