Yeah... that's literally it. The simplest thing ever. This is my code (which is connected to an "on start of layout"):
let dot = runtime.objects.Sprite; console.log(dot.x + ", " + dot.y); console.log(dot) dot.x = Math.ceil(Math.random() * 1000); dot.y = Math.ceil(Math.random() * 500); console.log(dot.x + ", " + dot.y);
Am I an idiot? I have a little bit of programming experience but I can't get this to do anything... ChatGPT won't help either.
Develop games in your browser. Powerful, performant & highly capable.
I think that first line should be
runtime.objects.Sprite.getFirstInstance()
or Sprite.instances as appropriate