@tactfulgamer Codea isn’t ignoring your y variable, you’re just not using it. You’re adding 1 to it every draw cycle, but that’s all you’re doing with it. To get the ellipse to move diagonally, change it to ellipse(x,y,100) .
So, that is what I was doing wrong, only setting variable for y in setup() and in draw() not within the ellipse itself. Interesting.
That definitely worked, replacing 400 with y.
but the concept as to how and why this works is escaping me
I thought…
the variables we place in setup() and in draw()… is what gives the ellipse instructions of where to go.
I am confused as to how changing the 400 into a y, communicated to the ellipse in what direction to move.
My beginner comprehension, understood… that values placed within the ellipse parameters are to affect height, width and scale only? not the direction in which it is to travel?
Maybe you can enlighten me with a newbie level explanation?
@tactfulgamer One place you can start is to look at the built in reference. You can find that by pressing the > in the upper left of the Codea project page. Or, if you’re in a project, tap the eye icon above the e key on the keyboard. Or at the top of this page is a Reference link. If you look in the reference under Graphics, you’ll see the ellipse command. If you tap on that it will give you info on how to use it. You’ll see that it uses the x,y,width,height variables, along with other uses. My suggestion is to look thru the reference just to become familiar with what’s there.
You’ll have a much better understanding of the usage of variables and various language features / code structures that you’ll be better placed to understand the documentation.
You’ll also be able to consider the reasons behind decisions made in Codea specific tutorials as opposed to working out what the code actually means.
I appreciate the website. The first few pages are explained in a super simple approach. Thanks. I’m hoping I can follow along in the Codea editor, if not I’ll just use ripple.
Just the other day I purchased three courses on Udemy:
@tactfulgamer - there is plenty of information and quite a few simple demos on the wiki, accessed from Codea website menu, and the forum contains a wealth of small demos if you are searching for anything specific. Might be an idea sometime to make a list of these or add them to the wiki.
Appreciate your suggestions. At moment, @Ignatz Codea beginner guide, seems to be providing me understanding. I’ll definitely jump onto your advise once finished here.