Comments (4)
Did you clone the project in Godot? If so, you need to use the exported app to use it, you can´t just import the project in the Godot editor.
You can follow the series in the browser here: https://gdquest.github.io/learn-gdscript/
Or download a desktop copy here: https://gdquest.itch.io/learn-godot-gdscript
from learn-gdscript.
i didn't import the project into the godot editor, i'm using the web version.
from learn-gdscript.
Thanks for the precision! I think what could be causing this is we try to rewrite while loops to ensure they're never infinite. The rewrite may be failing when using two while loops in a row.
from learn-gdscript.
I think there may be another issue here, as I ran into a similar problem. When I initially tried to write a solution for this exercise, I wrote the following:
func move_to_bottom():
while cell.y < board_size.y:
cell.y += 1
Essentially, the solution posted above, but without the additional loop. The script verifier couldn't catch the issue, and then I noticed the first issue -- the robot can move outside the board grid. So I fixed it:
func move_to_bottom():
while cell.y < board_size.y - 1:
cell.y += 1
But still no dice from the script verifier. That's when I realized the second issue: I was trying to assign a new value to the y
property of the cell. Assigning a new vector as the solution suggests works:
func move_to_bottom():
while cell.y < board_size.y - 1:
cell += Vector2(0, 1)
For a final experiment, I changed the condition to the following:
while cell.y < board_size.y - 1
This doesn't pass tests, but the script verifier helpfully tells me that the robot has moved beyond the grid. Long story short, it seems like the script verifier isn't catching attempts to assign/add values to a property of the vector where it expects you to add/assign a new vector.
from learn-gdscript.
Related Issues (20)
- Bug lesson 18-practice HOT 1
- Dyslexia accessible font option
- Tooltip message cut off from top when content exceeding window view and a minor issue with tooltip placement
- Error in spanish translate
- Code snippets not scrollable
- Double space in one of the drop downs
- 15.2 resetting position to (0, 0) exercise
- Oh no! The script has an error, but the Script Verifier did not catch it
- Since godot is coming to mobile,put a pop up keyboard. HOT 1
- Lesson 4 Paragraph still in english while using spanish version
- Practice 7.2 Drawing Squares at 3 positions
- Lesson 25 - Displaying the Inventory Items
- Stress marks marked as unknown character
- Toggle for smooth scrolling feature?
- The keyboard doesn't show up in mobile (im using tablet (Xiaomi pad 6)) HOT 2
- Hey. I try to do the course on my ipad in my favorite cafe. But i can change the code, because i can’t find the keyboard option. When i click on the intended area where i want to delete something or type, the keyboard option doesn’t pop up. What am i missing? Or isn’t it available on ipad? HOT 4
- Error in code example logic in first lesson (1. What code is Like)
- Cannot open the .dmg
- 20.2 Variable not defined
- Wrong execution and visuals lead to success in L7P2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-gdscript.