learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

lesson 28 misinformation

Open DexLovesGames opened this issue 3 years ago • 1 comments

I could very well be wrong here, but I think this is supposed to say "You'll likely pick one of two types for that: integer or Vector2" since you wouldn't typically use subpixels for a grid in a game, and because the example given just uses the integer 50.

image

DexLovesGames avatar Jul 03 '22 01:07 DexLovesGames

The numbers need a .0 to clear the confusion. But if you don't use strong typing, 50 is not strictly an int. It'll start as an int but will get converted automatically depending on the context like you can write a Vector2() with 50 as the coordinates - they're both floats.

NathanLovato avatar Jul 03 '22 06:07 NathanLovato