A couple of questions I need answering for my game.
Hi, I code on GDScript, and I don't know a few things that could be really helpful for a game I want to make.
First of all, how would you instantly make an object or enemy or whatever go to a specific coordinate? I would be surprised if this function wasn't possible.
Secondly, how would I make an enemy travel just towards the player's x axis, and not its x and y axis?
Thirdly, how can I share variables through scenes and between different nodes? I want to add in some kind of upgrade function but if I can't get a sprite to remember variables between different scripts, then I can't do it.
Finally, there are a few lines of code from tutorials I have watched that I don't get, and therefore am unable to implement on my own:
1) What does Vector2 mean (I know it's to do with movement, but more specifically what and how... if that makes sense)
2) Does motion.x mean moving across the x axis or is it to do with the x position specifically of the sprite?