Hello,
I am following a course on Udemy, it’S game development with LUA and a program called LOVE. Which I never heard of. I basically follow the tutorial and ignore any of the commands that require me to type in love.(etc…)
Everything has been working fine, up until this point. Here’s my issue.
-
We are creating a button that appears throughout the screen and moves quickly, you have to press the button before it repositions itself. It’s on a timer.
-
The button in the game is a circle (Ellipse)
-
The instructor wants us to add the dimensions (x,y,radius) from the function load and add them into function draw to the right of the Ellipse within it’s parenthesis. (See the 2nd image attached)
-
Problem here, when I do that, I get the following error message (See 2nd image - look on the left side)
-
If I do not add the function load statements into the Ellipse, everything works fine. (See 1st image, lower left side)
-
But… that’s the issue with number 5 above, the instructor states, the function load, is the first to load when the game starts, thus, my ellipse needs to get it’s instructions from there. (For the instructor’s code see the 3rd image)
Please advise.
I AM A BEGGINER TO CODING AND GAME DEVELOPMENT:
About 3 months old. I am initially learning C# since I will be developing on Unity platform for Virtual Reality. My business partner and I have a VR Arcade which we are turning into a LBE (meaning our own VR developed experiences).
However, since I am currently in the middle of a transition, I do not have a pc around me, Thus, I require my iPad to maintain practice and repitition, so comprehension and learning can sink in. So here I am with Codea and LUA.
I say all that to say this, I am just starting to comprehend Variables, Namespaces, Classes and other abstract concepts of programming, and so, pardon me, if I am not expressing with the correct terminology.